sqlj.runtime

Class BinaryStream

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

public class BinaryStream
extends StreamWrapper

BinaryStream is a class derived from java.io.InputStream. The octets comprising a BinaryStream object are not interpreted as 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.

Note: A BinaryStream object can only be used once as an in parameter of a SQL operation, because the operation will consume the stream.

See Also:
CharacterStream

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
BinaryStream(InputStream in)
          Creates a new BinaryStream object using the given InputStream object in.
BinaryStream(InputStream in, int length)
          Creates a new BinaryStream object using the given InputStream object.
 
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

BinaryStream

public BinaryStream(InputStream in)
Creates a new BinaryStream object using the given InputStream object in. The length of the BinaryStream object is uninitialized and must be set with set the setLength method before use of a BinaryStream object as an IN (or INOUT) parameter in an invocation of an SQL operation.

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

BinaryStream

public BinaryStream(InputStream in,
                    int length)
Creates a new BinaryStream object using the given InputStream object. The length of the BinaryStream object is initialized to the value length.

Parameters:
in - the InputStream to interpret as an BinaryStream.
length - the length in bytes of the BinaryStream
Access Rights

This class can be accessed from:


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


Copyright 2012 SAP AG Complete Copyright Notice