Lines Matching defs:encoding

52     private static String converterPackageName = null;  /* file.encoding.pkg */
53 private static String defaultEncoding = null; /* file.encoding */
72 * string) representing the encoding name that was used to request the
81 * will be the string encoding name used to request it, assuming that cache
102 private static Class<?> cache(int type, Object encoding) {
113 if (oa[1].equals(encoding)) {
121 private static Class<?> cache(int type, Object encoding, Class<?> c) {
123 srs[CACHE_SIZE - 1] = new SoftReference<>(new Object[] { c, encoding });
131 public static boolean isCached(int type, String encoding) {
143 if (oa[1].equals(encoding))
157 new sun.security.action.GetPropertyAction("file.encoding.pkg");
173 new sun.security.action.GetPropertyAction("file.encoding");
188 p.setProperty("file.encoding", defaultEncoding);
195 * encoding, or throw an UnsupportedEncodingException if no such class can
198 private static Class<?> getConverterClass(int type, String encoding)
203 /* "ISO8859_1" is the canonical name for the ISO-Latin-1 encoding.
207 if (!encoding.equals("ISO8859_1")) {
208 if (encoding.equals("8859_1")) {
220 } else if (encoding.equals("ISO8859-1")) {
222 } else if (encoding.equals("646")) {
225 enc = CharacterEncoding.aliasName(encoding);
229 enc = encoding;
259 * for the given encoding, or throw an UnsupportedEncodingException if no
279 * default encoding. If the default encoding cannot be determined or is
281 * encoding, which is just ISO 8859-1.
292 /* Determine the encoding name */
295 /* file.encoding has been set, so cache the converter class */
298 /* file.encoding has not been set, so use a default encoding which
303 /* We have an encoding name; try to find its class */
325 * for the default encoding, falling back to ISO 8859-1 if the default
326 * encoding cannot be determined.