org.enhydra.apache.xml.serialize
Class SieveEncodingInfo

java.lang.Object
  |
  +--org.enhydra.apache.xml.serialize.EncodingInfo
        |
        +--org.enhydra.apache.xml.serialize.SieveEncodingInfo

public class SieveEncodingInfo
extends EncodingInfo

This class represents an encoding.

Version:
$Id: SieveEncodingInfo.java,v 1.1.1.1 2003/03/10 16:34:53 taweili Exp $

Inner Class Summary
(package private) static class SieveEncodingInfo.BAOutputStream
          Why don't we use the original ByteArrayOutputStream? - Because the toByteArray() method of the ByteArrayOutputStream creates new byte[] instances for each call.
 
Field Summary
(package private)  SieveEncodingInfo.BAOutputStream checkerStream
           
(package private)  Writer checkerWriter
           
(package private)  String dangerChars
           
 
Fields inherited from class org.enhydra.apache.xml.serialize.EncodingInfo
javaName, lastPrintable, name
 
Constructor Summary
SieveEncodingInfo(String mimeName, int lastPrintable)
          Creates new SeiveEncodingInfo instance.
SieveEncodingInfo(String mimeName, String javaName, int lastPrintable, String dangers)
          Creates new SeiveEncodingInfo instance.
 
Method Summary
 boolean isPrintable(int ch)
          Checks whether the specified character is printable or not.
 
Methods inherited from class org.enhydra.apache.xml.serialize.EncodingInfo
getName, getWriter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checkerStream

SieveEncodingInfo.BAOutputStream checkerStream

checkerWriter

Writer checkerWriter

dangerChars

String dangerChars
Constructor Detail

SieveEncodingInfo

public SieveEncodingInfo(String mimeName,
                         String javaName,
                         int lastPrintable,
                         String dangers)
Creates new SeiveEncodingInfo instance.
Parameters:
dangers - A sorted characters that are always printed as character references.

SieveEncodingInfo

public SieveEncodingInfo(String mimeName,
                         int lastPrintable)
Creates new SeiveEncodingInfo instance.
Method Detail

isPrintable

public boolean isPrintable(int ch)
Checks whether the specified character is printable or not.
Overrides:
isPrintable in class EncodingInfo
Parameters:
ch - a code point (0-0x10ffff)


Copyright © 1999 The Apache Software Foundation. All Rights reserved.