|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream net.sourceforge.jtds.util.BlobBuffer.BlobInputStream
An InputStream
over the BLOB buffer.
Field Summary | |
private boolean |
open
|
private int |
readPtr
|
Fields inherited from class java.io.InputStream |
|
Constructor Summary | |
BlobBuffer.BlobInputStream(long pos)
Costructs an InputStream object over the BLOB buffer. |
Method Summary | |
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. |
Methods inherited from class java.io.InputStream |
mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int readPtr
private boolean open
Constructor Detail |
public BlobBuffer.BlobInputStream(long pos) throws java.io.IOException
InputStream
object over the BLOB buffer.
pos
- the starting position (from 0)
java.io.IOException
- if an I/O error occursMethod Detail |
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public int available() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic int read() throws java.io.IOException
int
or -1 if at EOF
java.io.IOException
- if an I/O error occurspublic int read(byte[] bytes, int offset, int len) throws java.io.IOException
bytes
- the byte array to filloffset
- the start position in the byte arraylen
- the number of bytes to read
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
java.io.IOException
- if an I/O error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |