net.sourceforge.jtds.util
Class BlobBuffer.BlobInputStream
InputStream
net.sourceforge.jtds.util.BlobBuffer.BlobInputStream
- BlobBuffer
private class BlobBuffer.BlobInputStream
extends InputStream
An InputStream
over the BLOB buffer.
BlobInputStream(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() - Reads the next byte from the stream.
|
int | read(byte[] bytes, int offset, int len) - Reads a bytes from the stream.
|
readPtr
private int readPtr
BlobInputStream
public BlobInputStream(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
Reads the next byte from the stream.
- the next byte as an
int
or -1 if at EOF
read
public int read(byte[] bytes,
int offset,
int len)
throws IOException
Reads a bytes from the stream.
bytes
- the byte array to filloffset
- the start position in the byte arraylen
- the number of bytes to read
- the number of bytes read or -1 if at end of file
Generated on June 12 2008