net.sourceforge.jtds.util
Class BlobBuffer.AsciiInputStream
InputStream
net.sourceforge.jtds.util.BlobBuffer.AsciiInputStream
- BlobBuffer
private class BlobBuffer.AsciiInputStream
extends InputStream
An ASCII
InputStream
over the CLOB buffer.
This class interprets ASCII as anything which has a value below 0x80.
This is more rigid than other drivers which allow any character below
0x100 to be converted to returned. The more relaxed coding is useful
when dealing with most single byte character sets and if this behaviour
is desired, comment out the line indicated in the read method.
AsciiInputStream(long pos) - Costructs an InputStream object over the BLOB buffer.
|
int | available() - Returns the number of bytes available to read.
|
void | close() - Closes the output stream.
|
protected void | finalize() - Ensures underlying BLOB file can be closed even if user does not
close this stream.
|
int | read() - Read the next byte from the stream.
|
readPtr
private int readPtr
AsciiInputStream
public AsciiInputStream(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
Closes 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
Read the next byte from the stream.
- the next byte as an
int
or -1 if at EOF
Generated on September 18 2009