    All Packages    This Package  Previous  Next

# Class sqlj.runtime.AsciiStream

    java.lang.Object
       |
       +----java.io.InputStream
               |
               +----java.io.FilterInputStream
                       |
                       +----sqlj.runtime.StreamWrapper
                               |
                               +----sqlj.runtime.AsciiStream

public class AsciiStream
extends StreamWrapper

An InputStream-derived class whose bytes should be interpreted as ASCII. When passing an InputStream as an input parameter to a executable sql operation, both the length of the InputStream and the way to interpret its bytes must be specified. Therefore, an InputStream cannot be passed directly, but rather must be an instance of AsciiStream, BinaryStream or UnicodeStream.

See Also:
  BinaryStream, UnicodeStream

##

AsciiStream(InputStream)
  Creates an Ascii-valued input stream with an uninitialized length.
AsciiStream(InputStream, int)
  Creates an Ascii-valued input stream of given length.

##

AsciiStream

     public AsciiStream(InputStream in)

  Creates an Ascii-valued input stream with an uninitialized length.

  Note: the length attribute must be set via a call to `setLength()` before use of an AsciiStream as an input (or in-out) parameter to an executable sql operation.

  Parameters:
    in - the InputStream to interpret as an AsciiStream.

AsciiStream

     public AsciiStream(InputStream in,
                        int length)

  Creates an Ascii-valued input stream of given length.

  Parameters:
    in - the InputStream to interpret as an AsciiStream.
    length - the length in bytes of the AcsiiStream

    All Packages    This Package  Previous  Next