Package net.sourceforge.jtds.util
Class BlobBuffer.AsciiOutputStream
java.lang.Object
java.io.OutputStream
net.sourceforge.jtds.util.BlobBuffer.AsciiOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
BlobBuffer
Implements an ASCII
OutputStream for CLOB data.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAsciiOutputStream(long pos) Costructs an ASCIIOutputStreamobject over the BLOB buffer. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write
-
Field Details
-
writePtr
private int writePtr -
open
private boolean open
-
-
Constructor Details
-
AsciiOutputStream
AsciiOutputStream(long pos) throws IOException Costructs an ASCIIOutputStreamobject over the BLOB buffer.- Parameters:
pos- the starting position (from 0)- Throws:
IOException- if an I/O error occurs
-
-
Method Details
-
finalize
Ensures underlying BLOB file can be closed even if user does not close this stream. -
write
Writes a byte to the BLOB buffer.- Specified by:
writein classOutputStream- Parameters:
b- the byte value to write- Throws:
IOException- if an I/O error occurs
-
close
Closes the output stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- if an I/O error occurs
-