1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package net.sf.ediknight.charset;
21
22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetDecoder;
24 import java.nio.charset.CharsetEncoder;
25
26
27 /***
28 * @author Holger Joest
29 */
30 public final class ISO_646_SE2
31 extends Charset {
32 private static final String CANONICAL_NAME = "SEN_850200_C";
33
34 private static final String[] ALIASES = {
35
36 "iso-ir-11",
37 "ISO646-SE2",
38 "se2",
39 "csISO11SwedishForNames",
40
41 "ISO_646-SE2",
42 "ISO-646-SE2"
43 };
44
45 private static final String CHARS =
46 "\u0023\u00A4\u00C9\u00C4\u00D6\u00C5"
47 + "\u00DC\u00E9\u00E4\u00F6\u00E5\u00FC";
48
49
50 /***
51 * Constructor.
52 */
53 public ISO_646_SE2() {
54 super(CANONICAL_NAME, ALIASES);
55 }
56
57
58 /***
59 * {@inheritDoc}
60 * @see java.nio.charset.Charset#contains(
61 * java.nio.charset.Charset)
62 */
63 @Override
64 public boolean contains(Charset cs) {
65 return false;
66 }
67
68
69 /***
70 * {@inheritDoc}
71 * @see java.nio.charset.Charset#newDecoder()
72 */
73 @Override
74 public CharsetDecoder newDecoder() {
75 return new LegacyCharsetDecoder(this, CHARS);
76 }
77
78
79 /***
80 * {@inheritDoc}
81 * @see java.nio.charset.Charset#newEncoder()
82 */
83 @Override
84 public CharsetEncoder newEncoder() {
85 return new LegacyCharsetEncoder(this, CHARS);
86 }
87
88 }
89