org.apache.xml.serialize

Class EncodingInfo

public class EncodingInfo extends Object

This class represents an encoding.

Version: $Id: EncodingInfo.java,v 1.7 2005/05/22 19:11:07 mrglavas Exp $

Constructor Summary
EncodingInfo(String ianaName, String javaName, int lastPrintable)
Creates new EncodingInfo instance.
Method Summary
StringgetIANAName()
Returns a MIME charset name of this encoding.
WritergetWriter(OutputStream output)
Returns a writer for this encoding based on an output stream.
booleanisPrintable(char ch)
Checks whether the specified character is printable or not in this encoding.
static voidtestJavaEncodingName(String name)

Constructor Detail

EncodingInfo

public EncodingInfo(String ianaName, String javaName, int lastPrintable)
Creates new EncodingInfo instance.

Method Detail

getIANAName

public String getIANAName()
Returns a MIME charset name of this encoding.

getWriter

public Writer getWriter(OutputStream output)
Returns a writer for this encoding based on an output stream.

Returns: A suitable writer

Throws: UnsupportedEncodingException There is no convertor to support this encoding

isPrintable

public boolean isPrintable(char ch)
Checks whether the specified character is printable or not in this encoding.

Parameters: ch a code point (0-0x10ffff)

testJavaEncodingName

public static void testJavaEncodingName(String name)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.