public class EncodingInfo
extends java.lang.Object
Constructor and Description |
---|
EncodingInfo(java.lang.String ianaName,
java.lang.String javaName,
int lastPrintable)
Creates new
EncodingInfo instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIANAName()
Returns a MIME charset name of this encoding.
|
java.io.Writer |
getWriter(java.io.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(java.lang.String name) |
public EncodingInfo(java.lang.String ianaName, java.lang.String javaName, int lastPrintable)
EncodingInfo
instance.public java.lang.String getIANAName()
public java.io.Writer getWriter(java.io.OutputStream output) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
- There is no convertor
to support this encodingpublic boolean isPrintable(char ch)
ch
- a code point (0-0x10ffff)public static void testJavaEncodingName(java.lang.String name) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
Copyright © 2010 - 2020 Adobe. All Rights Reserved