sqlj.runtime

Class AsciiStream

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

Deprecated. Please use CharacterStream instead.

public class AsciiStream
extends StreamWrapper

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

AsciiStream is a class derived from java.io.InputStream. The octets comprising an AsciiStream 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
AsciiStream(InputStream in)
          Deprecated. Creates an Ascii-valued input stream with an uninitialized length.
AsciiStream(InputStream in, int length)
          Deprecated. Creates an Ascii-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

AsciiStream

public AsciiStream(InputStream in)
Deprecated. 
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)
Deprecated. 
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
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] ENGINEAPI [sap.com] opensqldeprecated default BC-JAS-PER-SQL
[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


Copyright 2012 SAP AG Complete Copyright Notice