Class BlobBuffer.AsciiInputStream

java.lang.Object
java.io.InputStream
net.sourceforge.jtds.util.BlobBuffer.AsciiInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
BlobBuffer

private class BlobBuffer.AsciiInputStream extends InputStream
An ASCII InputStream over the CLOB buffer.

This class interprets ASCII as anything which has a value below 0x80. This is more rigid than other drivers which allow any character below 0x100 to be converted to returned. The more relaxed coding is useful when dealing with most single byte character sets and if this behaviour is desired, comment out the line indicated in the read method.

  • Field Details

    • readPtr

      private int readPtr
    • open

      private boolean open
  • Constructor Details

    • AsciiInputStream

      public AsciiInputStream(long pos) throws IOException
      Costructs an InputStream object over the BLOB buffer.
      Parameters:
      pos - the starting position (from 0)
      Throws:
      IOException - if an I/O error occurs
  • Method Details