net.sourceforge.jtds.util
Class BlobBuffer.BlobOutputStream
OutputStream
net.sourceforge.jtds.util.BlobBuffer.BlobOutputStream
- BlobBuffer
private class BlobBuffer.BlobOutputStream
extends OutputStream
Implements an OutputStream
for BLOB data.
BlobOutputStream(long pos) - Costructs an OutputStream object over the BLOB buffer.
|
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.
|
writePtr
private int writePtr
BlobOutputStream
(package private) BlobOutputStream(long pos)
throws IOException
Costructs an OutputStream object over the BLOB buffer.
pos
- the starting position (from 0)
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.
write
public void write(byte[] bytes,
int offset,
int len)
throws IOException
Write bytes to the BLOB buffer.
bytes
- the byte array value to writeoffset
- the start position in the byte arraylen
- the number of bytes to write
write
public void write(int b)
throws IOException
Write a byte to the BLOB buffer.
b
- the byte value to write
Generated on June 12 2008