|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.serializer.Encodings
Provides information about encodings. Depends on the Java runtime to provides writers for the different encodings, but can be used to override encoding names and provide the last printable character for each encoding.
Field Summary | |
static String |
DEFAULT_MIME_ENCODING
The default encoding, ISO style, ISO style. |
Constructor Summary | |
Encodings()
|
Method Summary | |
static String |
convertJava2MimeEncoding(String encoding)
Try the best we can to convert a Java encoding to a XML-style encoding. |
static String |
convertMime2JavaEncoding(String encoding)
Try the best we can to convert a Java encoding to a XML-style encoding. |
static Object |
getCharToByteConverter(String encoding)
Returns an opaque CharToByte converter for the specified encoding. |
static int |
getLastPrintable()
Returns the last printable character for an unspecified encoding. |
static int |
getLastPrintable(String encoding)
Returns the last printable character for the specified encoding. |
static String |
getMimeEncoding(String encoding)
Get the proper mime encoding. |
static Writer |
getWriter(OutputStream output,
String encoding)
Returns a writer for the specified encoding based on an output stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_MIME_ENCODING
Constructor Detail |
public Encodings()
Method Detail |
public static Writer getWriter(OutputStream output, String encoding) throws UnsupportedEncodingException
output
- The output streamencoding
- The encoding
UnsupportedEncodingException
- There is no convertor
to support this encodingpublic static Object getCharToByteConverter(String encoding)
encoding
- The encoding
public static int getLastPrintable(String encoding)
encoding
- The encoding
public static int getLastPrintable()
public static String getMimeEncoding(String encoding)
encoding
- Reference to java-style encoding string, which may be null,
in which case a default will be found.
public static String convertJava2MimeEncoding(String encoding)
encoding
- non-null reference to encoding string, java style.
public static String convertMime2JavaEncoding(String encoding)
encoding
- non-null reference to encoding string, java style.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |