public class

EncodingInfo

extends Object
java.lang.Object
   ↳ org.apache.xml.serialize.EncodingInfo

This class is deprecated.
This class was deprecated in Xerces 2.9.0. It is recommended that new applications use the DOM Level 3 LSSerializer or JAXP's Transformation API for XML (TrAX) for serializing XML. See the Xerces documentation for more information.

Class Overview

This class represents an encoding.

Summary

Public Constructors
EncodingInfo(String ianaName, String javaName, int lastPrintable)
Creates new EncodingInfo instance.
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EncodingInfo (String ianaName, String javaName, int lastPrintable)

Creates new EncodingInfo instance.

Public Methods

public String getIANAName ()

Returns a MIME charset name of this encoding.

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

public boolean isPrintable (char ch)

Checks whether the specified character is printable or not in this encoding.

Parameters
ch a code point (0-0x10ffff)

public static void testJavaEncodingName (String name)