12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package sun.awt.motif;
28
29 import java.nio.charset.Charset;
30 import java.nio.charset.CharsetEncoder;
31 import java.nio.charset.CharsetDecoder;
32 import sun.nio.cs.ext.DoubleByteEncoder;
33
34 public class X11SunUnicode_0 extends Charset {
35 public X11SunUnicode_0 () {
36 super("X11SunUnicode_0", null);
37 }
38
39 public CharsetEncoder newEncoder() {
40 return new Encoder(this);
41 }
42
43 /* Seems like supporting a decoder is required, but we aren't going
44 * to be publically exposing this class, so no need to waste work
45 */
46 public CharsetDecoder newDecoder() {
47 throw new Error("Decoder is not implemented for X11SunUnicode_0 Charset");
48 }
49
50 public boolean contains(Charset cs) {
51 return cs instanceof X11SunUnicode_0;
52 }
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26
27 package sun.awt.motif;
28
29 import java.nio.charset.Charset;
30 import java.nio.charset.CharsetEncoder;
31 import java.nio.charset.CharsetDecoder;
32
33 public class X11SunUnicode_0 extends Charset {
34 public X11SunUnicode_0 () {
35 super("X11SunUnicode_0", null);
36 }
37
38 public CharsetEncoder newEncoder() {
39 return new Encoder(this);
40 }
41
42 /* Seems like supporting a decoder is required, but we aren't going
43 * to be publically exposing this class, so no need to waste work
44 */
45 public CharsetDecoder newDecoder() {
46 throw new Error("Decoder is not implemented for X11SunUnicode_0 Charset");
47 }
48
49 public boolean contains(Charset cs) {
50 return cs instanceof X11SunUnicode_0;
51 }
|