    All Packages    This Package  Previous  Next

# Class sqlj.runtime.UnicodeStream

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

public class UnicodeStream
extends StreamWrapper

An InputStream-derived class whose bytes should be interpreted as Unicode. When passing an InputStream as an input parameter to an 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:
  AsciiStream, BinaryStream

##

UnicodeStream(InputStream)
  Creates a Unicode-valued input stream with an uninitialized length.
UnicodeStream(InputStream, int)
  Creates a Unicode-valued input stream of given length.

##

UnicodeStream

     public UnicodeStream(InputStream in)

  Creates a Unicode-valued input stream with an uninitialized length.

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

  Parameters:
    in - the InputStream to interpret as a UnicodeStream.

UnicodeStream

     public UnicodeStream(InputStream in,
                          int length)

  Creates a Unicode-valued input stream of given length.

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

    All Packages    This Package  Previous  Next