Package net.sourceforge.jtds.util
Class BlobBuffer.AsciiOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.sourceforge.jtds.util.BlobBuffer.AsciiOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- BlobBuffer
private class BlobBuffer.AsciiOutputStream extends java.io.OutputStream
Implements an ASCIIOutputStream
for CLOB data.
-
-
Constructor Summary
Constructors Constructor Description AsciiOutputStream(long pos)
Costructs an ASCIIOutputStream
object over the BLOB buffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the output stream.protected void
finalize()
Ensures underlying BLOB file can be closed even if user does not close this stream.void
write(int b)
Writes a byte to the BLOB buffer.
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
Ensures underlying BLOB file can be closed even if user does not close this stream.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
write
public void write(int b) throws java.io.IOException
Writes a byte to the BLOB buffer.- Specified by:
write
in classjava.io.OutputStream
- Parameters:
b
- the byte value to write- Throws:
java.io.IOException
- if an I/O error occurs
-
close
public void close() throws java.io.IOException
Closes the output stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
- if an I/O error occurs
-
-