net.sourceforge.jtds.util
Class BlobBuffer.UnicodeInputStream
InputStream
net.sourceforge.jtds.util.BlobBuffer.UnicodeInputStream
- BlobBuffer
private class BlobBuffer.UnicodeInputStream
extends InputStream
A Big Endian Unicode InputStream
over the CLOB buffer.
int | available() - Returns the number of bytes available to read.
|
void | close() - Close the output stream.
|
protected void | finalize() - Ensures underlying BLOB file can be closed even if user does not
close this stream.
|
int | read() - Reads the next byte from the stream.
|
readPtr
private int readPtr
UnicodeInputStream
public UnicodeInputStream(long pos)
throws IOException
Costructs an InputStream object over the BLOB buffer.
pos
- the starting position (from 0)
available
public int available()
throws IOException
Returns the number of bytes available to read.
close
public void close()
throws IOException
Close the output stream.
finalize
protected void finalize()
throws Throwable
Ensures underlying BLOB file can be closed even if user does not
close this stream.
read
public int read()
throws IOException
Reads the next byte from the stream.
- the next byte as an
int
or -1 if at EOF
Generated on September 18 2009