oracle.sqlj.runtime
Class NcharAsciiStream

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

public class NcharAsciiStream
extends AsciiStream

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.

The NcharAsciiStream is a variant of the SQLJ AsciiStream that always implies an NCHAR form of use.

See Also:
AsciiStream

Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
NcharAsciiStream(AsciiStream as)
          Creates an Ascii-valued input stream with Nchar form of use from an existing Ascii input stream.
NcharAsciiStream(java.io.InputStream in)
          Creates an Ascii-valued input stream with Nchar form of use with an uninitialized length.
NcharAsciiStream(java.io.InputStream in, int length)
          Creates an Ascii-valued input stream with Nchar form of use of given length.
 
Methods inherited from class sqlj.runtime.StreamWrapper
getInputStream, getLength, setLength
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcharAsciiStream

public NcharAsciiStream(java.io.InputStream in)
Creates an Ascii-valued input stream with Nchar form of use 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 with an NCHAR form of use.

NcharAsciiStream

public NcharAsciiStream(java.io.InputStream in,
                        int length)
Creates an Ascii-valued input stream with Nchar form of use of given length.
Parameters:
in - the InputStream to interpret as an AsciiStream with an NCHAR form of use.
length - the length in bytes of the AsciiStream

NcharAsciiStream

public NcharAsciiStream(AsciiStream as)
Creates an Ascii-valued input stream with Nchar form of use from an existing Ascii input stream.
Parameters:
the - Ascii stream