org.apache.batik.util.io
Class UTF16Decoder
java.lang.Object
org.apache.batik.util.io.AbstractCharDecoder
org.apache.batik.util.io.UTF16Decoder
- All Implemented Interfaces:
- CharDecoder
- public class UTF16Decoder
- extends AbstractCharDecoder
This class represents an object which decodes UTF-16 characters from
a stream of bytes.
- Version:
- $Id: UTF16Decoder.java,v 1.3 2003/08/08 11:39:27 vhardy Exp $
- Author:
- Stephane Hillion
|
Field Summary |
protected boolean |
bigEndian
Whether the stream's byte-order is big-endian. |
|
Constructor Summary |
UTF16Decoder(java.io.InputStream is)
Creates a new UTF16Decoder. |
UTF16Decoder(java.io.InputStream is,
boolean be)
Creates a new UTF16Decoder. |
|
Method Summary |
int |
readChar()
Reads the next character. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bigEndian
protected boolean bigEndian
- Whether the stream's byte-order is big-endian.
UTF16Decoder
public UTF16Decoder(java.io.InputStream is)
throws java.io.IOException
- Creates a new UTF16Decoder.
It is assumed that the byte-order mark is present.
- Parameters:
is - The stream to decode.
UTF16Decoder
public UTF16Decoder(java.io.InputStream is,
boolean be)
- Creates a new UTF16Decoder.
- Parameters:
is - The stream to decode.be - Whether or not the given stream's byte-order is
big-endian.
readChar
public int readChar()
throws java.io.IOException
- Reads the next character.
- Returns:
- a character or END_OF_STREAM.
- Throws:
java.io.IOException
<oXygen/>
XML Editor
uses Batik from the Apache Foundation
to provide support for previewing SVG documents.
See the SVG Editor section
for more info.