net.sourceforge.jtds.util

Class BlobBuffer.AsciiOutputStream

Enclosing Class:
BlobBuffer

private class BlobBuffer.AsciiOutputStream
extends OutputStream

Implements an ASCII OutputStream for CLOB data.

Field Summary

private boolean
open
private int
writePtr

Constructor Summary

AsciiOutputStream(long pos)
Costructs an ASCII OutputStream object over the BLOB buffer.

Method Summary

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.

Field Details

open

private boolean open

writePtr

private int writePtr

Constructor Details

AsciiOutputStream

(package private)  AsciiOutputStream(long pos)
            throws IOException
Costructs an ASCII OutputStream object over the BLOB buffer.
Parameters:
pos - the starting position (from 0)

Method Details

close

public void close()
            throws IOException
Closes 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(int b)
            throws IOException
Writes a byte to the BLOB buffer.
Parameters:
b - the byte value to write

Generated on June 12 2008