Sqlj.runtime.unicodestream Class; Ibm Data Server Driver For Jdbc And Sqlj Extensions To Jdbc - IBM DB2 Manual

Table of Contents

Advertisement

sqlj.runtime.UnicodeStream class

The sqlj.runtime.UnicodeStream class is for an input stream of Unicode data with
a specified length.
The sqlj.runtime.UnicodeStream class is derived from the java.io.InputStream
class, and extends the sqlj.runtime.StreamWrapper class. SQLJ interprets the bytes
in an sqlj.runtime.UnicodeStream object as Unicode characters. An InputStream
object with Unicode characters needs to be passed as a
sqlj.runtime.UnicodeStream object.
Constructors
UnicodeStream(InputStream)
UnicodeStream(InputStream, int)

IBM Data Server Driver for JDBC and SQLJ extensions to JDBC

The IBM Data Server Driver for JDBC and SQLJ provides a set of extensions to the
support that is provided by the JDBC specification.
To use IBM Data Server Driver for JDBC and SQLJ-only methods in classes that
have corresponding, standard classes, cast an instance of the related, standard
JDBC class to an instance of the IBM Data Server Driver for JDBC and SQLJ-only
class. For example:
316
Application Programming Guide and Reference for Java
"sqlj.runtime.AsciiStream class" on page 304
"sqlj.runtime.BinaryStream class" on page 305
"sqlj.runtime.CharacterStream class" on page 306
"sqlj.runtime.UnicodeStream class"
Format:
public UnicodeStream(java.io.InputStream input-stream)
Creates a Unicode java.io.InputStream object with an unspecified length.
Parameters:
input-stream
The InputStream object that SQLJ interprets as an UnicodeStream object.
Format:
public UnicodeStream(java.io.InputStream input-stream, int length)
Creates a Unicode java.io.InputStream object with a specified length.
Parameters:
input-stream
The InputStream object that SQLJ interprets as an UnicodeStream object.
length
The length of the InputStream object that SQLJ interprets as an
UnicodeStream object.
Related reference
"sqlj.runtime.AsciiStream class" on page 304
"sqlj.runtime.BinaryStream class" on page 305
"sqlj.runtime.CharacterStream class" on page 306
"sqlj.runtime.StreamWrapper class" on page 314

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents