org.apache.derby.impl.jdbc
Class UTF8Reader

java.lang.Object
  extended byjava.io.Reader
      extended byorg.apache.derby.impl.jdbc.UTF8Reader

public final class UTF8Reader
extends java.io.Reader


Field Summary
private  char[] buffer
           
private  int charactersInBuffer
           
private  java.io.InputStream in
           
private  long maxFieldSize
           
private  boolean noMoreReads
           
private  ConnectionChild parent
           
private  long readerCharCount
           
private  int readPositionInBuffer
           
private  long utfCount
           
private  long utfLen
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
UTF8Reader(java.io.InputStream in, long maxFieldSize, ConnectionChild parent, java.lang.Object synchronization)
           
 
Method Summary
 void close()
           
private  void closeIn()
           
private  boolean fillBuffer()
          Fill the buffer, return true if eof has been reached.
 int read()
           
 int read(char[] cbuf, int off, int len)
           
(package private)  int readAsciiInto(byte[] abuf, int off, int len)
           
 int readInto(java.lang.StringBuffer sb, int len)
           
private  int readUnsignedShort()
           
 long skip(long len)
           
private  java.io.IOException utfFormatException()
           
private  java.io.IOException utfFormatException(java.lang.String s)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, ready, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStream in

utfLen

private final long utfLen

utfCount

private long utfCount

readerCharCount

private long readerCharCount

maxFieldSize

private long maxFieldSize

buffer

private char[] buffer

charactersInBuffer

private int charactersInBuffer

readPositionInBuffer

private int readPositionInBuffer

noMoreReads

private boolean noMoreReads

parent

private ConnectionChild parent
Constructor Detail

UTF8Reader

public UTF8Reader(java.io.InputStream in,
                  long maxFieldSize,
                  ConnectionChild parent,
                  java.lang.Object synchronization)
           throws java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long len)
          throws java.io.IOException
Throws:
java.io.IOException

close

public void close()

readInto

public int readInto(java.lang.StringBuffer sb,
                    int len)
             throws java.io.IOException
Throws:
java.io.IOException

readAsciiInto

int readAsciiInto(byte[] abuf,
                  int off,
                  int len)
            throws java.io.IOException
Throws:
java.io.IOException

closeIn

private void closeIn()

utfFormatException

private java.io.IOException utfFormatException(java.lang.String s)

utfFormatException

private java.io.IOException utfFormatException()

fillBuffer

private boolean fillBuffer()
                    throws java.io.IOException
Fill the buffer, return true if eof has been reached.

Throws:
java.io.IOException

readUnsignedShort

private final int readUnsignedShort()
                             throws java.io.IOException
Throws:
java.io.IOException


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.