| java.lang.Object com.caucho.vfs.Encoding
Encoding | public class Encoding (Code) | | Converts between the mime encoding names and Java encoding names.
|
getJavaName | public static String getJavaName(String encoding)(Code) | | Returns the Java name for the given encoding.
Parameters: encoding - character encoding name Java encoding name |
getJavaName | public static String getJavaName(Locale locale)(Code) | | Returns the Java name for the given locale.
Parameters: locale - the locale to use Java encoding name |
getMimeName | public static String getMimeName(String encoding)(Code) | | Returns the canonical mime name for the given character encoding.
Parameters: encoding - character encoding name, possibly an alias canonical mime name for the encoding. |
getMimeName | public static String getMimeName(Locale locale)(Code) | | Returns the canonical mime name for the given locale.
Parameters: locale - locale to use. canonical mime name for the encoding. |
getReadEncoding | public static Reader getReadEncoding(InputStream is, String encoding) throws UnsupportedEncodingException(Code) | | Returns a Reader to translate bytes to characters. If a specialized
reader exists in com.caucho.vfs.i18n, use it.
Parameters: is - the input stream. Parameters: encoding - the encoding name. a reader for the translation |
getReadFactory | public static EncodingReader getReadFactory(String encoding) throws UnsupportedEncodingException(Code) | | Returns a Reader to translate bytes to characters. If a specialized
reader exists in com.caucho.vfs.i18n, use it.
Parameters: is - the input stream. Parameters: encoding - the encoding name. a reader for the translation |
getWriteEncoding | public static EncodingWriter getWriteEncoding(String encoding)(Code) | | Returns an EncodingWriter to translate characters to bytes.
Parameters: encoding - the encoding name. a writer for the translation |
|
|