sqlj.runtime

Class UnicodeStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by sqlj.runtime.StreamWrapper
              extended by sqlj.runtime.UnicodeStream
All Implemented Interfaces:
Closeable

Deprecated. Please use CharacterStream instead.

public class UnicodeStream
extends StreamWrapper

This class is not supported by Open SQL / SQLJ. Please use CharacterStream instead.

UnicodeStream is a class derived from java.io.InputStream. The octets comprising an UnicodeStream object are interpreted as ASCII characters. In order to process an InputStream object as an input argument to an executable SQL operation, an SQLJ implementation has to know both its length and the way to interpret its octets. Therefore, an InputStream object cannot be passed directly, but rather shall be an instance of AsciiStream, BinaryStream, or UnicodeStream.

See Also:
CharacterStream, BinaryStream, UnicodeStream

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UnicodeStream(InputStream in)
          Deprecated. Creates a Unicode-valued input stream with an uninitialized length.
UnicodeStream(InputStream in, int length)
          Deprecated. Creates a Unicode-valued input stream of given length.
 
Method Summary
 
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

UnicodeStream

public UnicodeStream(InputStream in)
Deprecated. 
Creates a Unicode-valued input stream with an uninitialized length.

Note: the length attribute must be set via a call to sqlj.runtime.StreamWrapper#setLength(int 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)
Deprecated. 
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
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.libdeprecated default BC-JAS
[sap.com] ENGFACADE [sap.com] tc/je/opensql/api api BC-JAS
[sap.com] ENGINEAPI [sap.com] opensqldeprecated default BC-JAS-PER-SQL


Copyright 2012 SAP AG Complete Copyright Notice