33 import java.util.HashMap;
34 import java.util.Properties;
35 import java.util.StringTokenizer;
36 import java.io.IOException;
37 import java.net.MalformedURLException;
38 import java.nio.charset.Charset;
39 import java.nio.charset.IllegalCharsetNameException;
40 import java.nio.charset.UnsupportedCharsetException;
41 import java.util.Collections;
42 import java.util.Map;
43 import java.util.Map.Entry;
44
45 import com.sun.org.apache.xalan.internal.utils.SecuritySupport;
46
47 /**
48 * Provides information about encodings. Depends on the Java runtime
49 * to provides writers for the different encodings, but can be used
50 * to override encoding names and provide the last printable character
51 * for each encoding.
52 *
53 * @version $Revision: 1.11 $ $Date: 2010-11-01 04:34:44 $
54 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
55 */
56
57 public final class Encodings extends Object
58 {
59
60 /**
61 * The last printable character for unknown encodings.
62 */
63 private static final int m_defaultLastPrintable = 0x7F;
64
65 /**
66 * Standard filename for properties file with encodings data.
67 */
68 private static final String ENCODINGS_FILE = "com/sun/org/apache/xml/internal/serializer/Encodings.properties";
69
70 /**
71 * Standard filename for properties file with encodings data.
72 */
73 private static final String ENCODINGS_PROP = "com.sun.org.apache.xalan.internal.serialize.encodings";
|
33 import java.util.HashMap;
34 import java.util.Properties;
35 import java.util.StringTokenizer;
36 import java.io.IOException;
37 import java.net.MalformedURLException;
38 import java.nio.charset.Charset;
39 import java.nio.charset.IllegalCharsetNameException;
40 import java.nio.charset.UnsupportedCharsetException;
41 import java.util.Collections;
42 import java.util.Map;
43 import java.util.Map.Entry;
44
45 import com.sun.org.apache.xalan.internal.utils.SecuritySupport;
46
47 /**
48 * Provides information about encodings. Depends on the Java runtime
49 * to provides writers for the different encodings, but can be used
50 * to override encoding names and provide the last printable character
51 * for each encoding.
52 *
53 * @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
54 */
55
56 public final class Encodings extends Object
57 {
58
59 /**
60 * The last printable character for unknown encodings.
61 */
62 private static final int m_defaultLastPrintable = 0x7F;
63
64 /**
65 * Standard filename for properties file with encodings data.
66 */
67 private static final String ENCODINGS_FILE = "com/sun/org/apache/xml/internal/serializer/Encodings.properties";
68
69 /**
70 * Standard filename for properties file with encodings data.
71 */
72 private static final String ENCODINGS_PROP = "com.sun.org.apache.xalan.internal.serialize.encodings";
|