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_NO
31 extends Charset {
32
33 private static final String CANONICAL_NAME = "NS_4551-1";
34
35 private static final String[] ALIASES = {
36
37 "iso-ir-60",
38 "ISO646-NO",
39 "no",
40 "csISO60DanishNorwegian",
41 "csISO60Norwegian1",
42
43 "ISO_646-NO",
44 "ISO-646-NO"
45 };
46
47 private static final String CHARS =
48 "\u0023\u0024\u0040\u00C6\u00D8\u00C5"
49 + "\u005E\u0060\u00E6\u00F8\u00E5\u203E";
50
51
52 /***
53 * Constructor.
54 */
55 public ISO_646_NO() {
56 super(CANONICAL_NAME, ALIASES);
57 }
58
59
60 /***
61 * {@inheritDoc}
62 * @see java.nio.charset.Charset#contains(java.nio.charset.Charset)
63 */
64 @Override
65 public boolean contains(Charset cs) {
66 return false;
67 }
68
69
70 /***
71 * {@inheritDoc}
72 * @see java.nio.charset.Charset#newDecoder()
73 */
74 @Override
75 public CharsetDecoder newDecoder() {
76 return new LegacyCharsetDecoder(this, CHARS);
77 }
78
79
80 /***
81 * {@inheritDoc}
82 * @see java.nio.charset.Charset#newEncoder()
83 */
84 @Override
85 public CharsetEncoder newEncoder() {
86 return new LegacyCharsetEncoder(this, CHARS);
87 }
88
89 }
90