|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream net.sourceforge.jtds.util.BlobBuffer.BlobOutputStream
Implements an OutputStream
for BLOB data.
Field Summary | |
private boolean |
open
|
private int |
writePtr
|
Constructor Summary | |
(package private) |
BlobBuffer.BlobOutputStream(long pos)
Costructs an OutputStream object over the BLOB buffer. |
Method Summary | |
void |
close()
Close the output stream. |
protected void |
finalize()
Ensures underlying BLOB file can be closed even if user does not close this stream. |
void |
write(byte[] bytes,
int offset,
int len)
Write bytes to the BLOB buffer. |
void |
write(int b)
Write a byte to the BLOB buffer. |
Methods inherited from class java.io.OutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int writePtr
private boolean open
Constructor Detail |
BlobBuffer.BlobOutputStream(long pos) throws java.io.IOException
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 void write(int b) throws java.io.IOException
b
- the byte value to write
java.io.IOException
- if an I/O error occurspublic void write(byte[] bytes, int offset, int len) throws java.io.IOException
bytes
- the byte array value to writeoffset
- the start position in the byte arraylen
- the number of bytes to write
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 |