Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jasig.portal.serialize
Class EncodingInfo

    java.lang.Object
      org.jasig.portal.serialize.EncodingInfo

Direct Known Subclasses:
  SieveEncodingInfo

    public class EncodingInfo

extends java.lang.Object

This class represents an encoding.

Version:
  $Id: EncodingInfo.java,v 1.1 2001/11/10 01:18:42 peterk Exp $

Field Summary
`(package private) java.lang.String` | `javaName`
`(package private) int` | `lastPrintable`
`(package private) java.lang.String` | `name`

Constructor Summary
`EncodingInfo(java.lang.String mimeName, int lastPrintable)` Creates new `EncodingInfo` instance.
`EncodingInfo(java.lang.String mimeName, java.lang.String javaName, int lastPrintable)` Creates new `EncodingInfo` instance.

Method Summary
`java.lang.String` | `getName()` 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(int ch)` Checks whether the specified character is printable or not.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### name

    java.lang.String name

### javaName

    java.lang.String javaName

### lastPrintable

    int lastPrintable

Constructor Detail

### EncodingInfo

    public EncodingInfo(java.lang.String mimeName,
                        java.lang.String javaName,
                        int lastPrintable)

  Creates new `EncodingInfo` instance.

### EncodingInfo

    public EncodingInfo(java.lang.String mimeName,
                        int lastPrintable)

  Creates new `EncodingInfo` instance.

Method Detail

### getName

    public java.lang.String getName()

  Returns a MIME charset name of this encoding.

### getWriter

    public java.io.Writer getWriter(java.io.OutputStream output)
                             throws java.io.UnsupportedEncodingException

  Returns a writer for this encoding based on an output stream.

  Returns:
    A suitable writer
  Throws:
    `java.io.UnsupportedEncodingException` - There is no convertor to support this encoding

### isPrintable

    public boolean isPrintable(int ch)

  Checks whether the specified character is printable or not.

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD