ice.util.encoding
Class ReaderUTF8

java.lang.Object
  extended byjava.io.Reader
      extended byice.util.encoding.ReaderUTF8

public class ReaderUTF8
extends Reader


Field Summary
static int BROKEN_UTF8_CHAR_MARK
          Indicate sequence of one or more bad UTF-8 bytes
static int LONGEST_UTF8_CHAR_BYTES_LENGTH
           
static int NONJAVA_CHAR_MARK
          Indicate ISO-10646 char that is bigger then 0xFFFF
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ReaderUTF8(InputStream is)
           
ReaderUTF8(InputStream is, int decodingBufferSize)
           
 
Method Summary
 void close()
           
 boolean isThrowOnBadUTF8()
           
 int read()
           
 int read(char[] array, int offset, int length)
           
 boolean ready()
           
 void setThrowOnBadUTF8(boolean value)
           
 long skip(long length)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONGEST_UTF8_CHAR_BYTES_LENGTH

public static final int LONGEST_UTF8_CHAR_BYTES_LENGTH
See Also:
Constant Field Values

BROKEN_UTF8_CHAR_MARK

public static final int BROKEN_UTF8_CHAR_MARK
Indicate sequence of one or more bad UTF-8 bytes

See Also:
Constant Field Values

NONJAVA_CHAR_MARK

public static final int NONJAVA_CHAR_MARK
Indicate ISO-10646 char that is bigger then 0xFFFF

See Also:
Constant Field Values
Constructor Detail

ReaderUTF8

public ReaderUTF8(InputStream is)

ReaderUTF8

public ReaderUTF8(InputStream is,
                  int decodingBufferSize)
Method Detail

isThrowOnBadUTF8

public boolean isThrowOnBadUTF8()

setThrowOnBadUTF8

public void setThrowOnBadUTF8(boolean value)

ready

public boolean ready()

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(char[] array,
                int offset,
                int length)
         throws IOException
Throws:
IOException

skip

public long skip(long length)
          throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException