public class EncodingInfo extends Object
Constructor and Description |
---|
EncodingInfo(String ianaName,
String javaName,
int lastPrintable)
Creates new
EncodingInfo instance. |
Modifier and Type | Method and Description |
---|---|
String |
getIANAName()
Returns a MIME charset name of this encoding.
|
Writer |
getWriter(OutputStream output)
Returns a writer for this encoding based on
an output stream.
|
boolean |
isPrintable(char ch)
Checks whether the specified character is printable or not
in this encoding.
|
static void |
testJavaEncodingName(String name) |
public String getIANAName()
public Writer getWriter(OutputStream output) throws UnsupportedEncodingException
UnsupportedEncodingException
- There is no convertor
to support this encodingpublic boolean isPrintable(char ch)
ch
- a code point (0-0x10ffff)public static void testJavaEncodingName(String name) throws UnsupportedEncodingException
UnsupportedEncodingException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"