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_SE
31 extends Charset {
32
33 private static final String CANONICAL_NAME = "SEN_850200_B";
34
35 private static final String[] ALIASES = {
36
37 "iso-ir-10",
38 "FI",
39 "ISO646-FI",
40 "ISO646-SE",
41 "se",
42 "csISO10Swedish",
43
44 "ISO_646-FI",
45 "ISO_646-SE",
46 "ISO-646-FI",
47 "ISO-646-SE"
48 };
49
50 private static final String CHARS =
51 "\u0023\u0024\u00A7\u00C3\u00C7\u00D5"
52 + "\u005E\u0060\u00E3\u00E7\u00F5\u00B0";
53
54
55 /***
56 * Constructor.
57 */
58 public ISO_646_SE() {
59 super(CANONICAL_NAME, ALIASES);
60 }
61
62
63 /***
64 * {@inheritDoc}
65 * @see java.nio.charset.Charset#contains(
66 * java.nio.charset.Charset)
67 */
68 @Override
69 public boolean contains(Charset cs) {
70 return false;
71 }
72
73
74 /***
75 * {@inheritDoc}
76 * @see java.nio.charset.Charset#newDecoder()
77 */
78 @Override
79 public CharsetDecoder newDecoder() {
80 return new LegacyCharsetDecoder(this, CHARS);
81 }
82
83
84 /***
85 * {@inheritDoc}
86 * @see java.nio.charset.Charset#newEncoder()
87 */
88 @Override
89 public CharsetEncoder newEncoder() {
90 return new LegacyCharsetEncoder(this, CHARS);
91 }
92
93 }
94