< prev index next >

jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serialize/Encodings.java

Print this page




  20 
  21 
  22 package com.sun.org.apache.xml.internal.serialize;
  23 
  24 
  25 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  26 import java.io.UnsupportedEncodingException;
  27 import java.util.Locale;
  28 import java.util.Map;
  29 import java.util.concurrent.ConcurrentHashMap;
  30 
  31 
  32 /**
  33  * Provides information about encodings. Depends on the Java runtime
  34  * to provides writers for the different encodings, but can be used
  35  * to override encoding names and provide the last printable character
  36  * for each encoding.
  37  *
  38  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  39  *
  40  * @deprecated As of JDK 1.9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  41  * is replaced by that of Xalan. Main class
  42  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  43  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  44  */
  45 class Encodings
  46 {
  47 
  48 
  49     /**
  50      * The last printable character for unknown encodings.
  51      */
  52     static final int DEFAULT_LAST_PRINTABLE = 0x7F;
  53 
  54     // last printable character for Unicode-compatible encodings
  55     static final int LAST_PRINTABLE_UNICODE = 0xffff;
  56     // unicode-compliant encodings; can express plane 0
  57     static final String[] UNICODE_ENCODINGS = {
  58         "Unicode", "UnicodeBig", "UnicodeLittle", "GB2312", "UTF8", "UTF-16",
  59     };
  60     // default (Java) encoding if none supplied:




  20 
  21 
  22 package com.sun.org.apache.xml.internal.serialize;
  23 
  24 
  25 import com.sun.org.apache.xerces.internal.util.EncodingMap;
  26 import java.io.UnsupportedEncodingException;
  27 import java.util.Locale;
  28 import java.util.Map;
  29 import java.util.concurrent.ConcurrentHashMap;
  30 
  31 
  32 /**
  33  * Provides information about encodings. Depends on the Java runtime
  34  * to provides writers for the different encodings, but can be used
  35  * to override encoding names and provide the last printable character
  36  * for each encoding.
  37  *
  38  * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
  39  *
  40  * @deprecated As of JDK 9, Xerces 2.9.0, Xerces DOM L3 Serializer implementation
  41  * is replaced by that of Xalan. Main class
  42  * {@link com.sun.org.apache.xml.internal.serialize.DOMSerializerImpl} is replaced
  43  * by {@link com.sun.org.apache.xml.internal.serializer.dom3.LSSerializerImpl}.
  44  */
  45 class Encodings
  46 {
  47 
  48 
  49     /**
  50      * The last printable character for unknown encodings.
  51      */
  52     static final int DEFAULT_LAST_PRINTABLE = 0x7F;
  53 
  54     // last printable character for Unicode-compatible encodings
  55     static final int LAST_PRINTABLE_UNICODE = 0xffff;
  56     // unicode-compliant encodings; can express plane 0
  57     static final String[] UNICODE_ENCODINGS = {
  58         "Unicode", "UnicodeBig", "UnicodeLittle", "GB2312", "UTF8", "UTF-16",
  59     };
  60     // default (Java) encoding if none supplied:


< prev index next >