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_FR1
31 extends Charset {
32
33 private static final String CANONICAL_NAME =
34 "NF_Z_62-010_1973";
35
36 private static final String[] ALIASES = {
37
38 "iso-ir-25",
39 "ISO646-FR1",
40 "csISO25French",
41
42 "ISO_646-FR1",
43 "ISO-646-FR1"
44 };
45
46 private static final String CHARS =
47 "\u00A3\u0024\u00E0\u00B0\u00E7\u00A7"
48 + "\u005E\u0060\u00E9\u00F9\u00E8\u00A8";
49
50
51 /***
52 * Constructor.
53 */
54 public ISO_646_FR1() {
55 super(CANONICAL_NAME, ALIASES);
56 }
57
58
59 /***
60 * {@inheritDoc}
61 * @see java.nio.charset.Charset#contains(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