src/solaris/classes/sun/awt/motif/X11JIS0212.java
Print this page
@@ -26,23 +26,23 @@
package sun.awt.motif;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import java.nio.charset.CharsetDecoder;
-import sun.nio.cs.ext.JIS_X_0212_Encoder;
-import sun.nio.cs.ext.JIS_X_0212_Decoder;
+import sun.nio.cs.ext.JIS_X_0212;
public class X11JIS0212 extends Charset {
+ private static Charset jis0212 = new JIS_X_0212();
+
public X11JIS0212 () {
super("X11JIS0212", null);
}
public CharsetEncoder newEncoder() {
- return new JIS_X_0212_Encoder(this);
+ return jis0212.newEncoder();
}
public CharsetDecoder newDecoder() {
- return new JIS_X_0212_Decoder(this);
+ return jis0212.newDecoder();
}
-
public boolean contains(Charset cs) {
return cs instanceof X11JIS0212;
}
}