IBM DB2 Manual page 385

Table of Contents

Advertisement

public java.io.InputStream getDB2AsciiStream()
throws SQLExceptionn
Retrieves data from a DB2Xml object, and converts the data to US-ASCII
encoding.
getDB2BinaryStream
Format:
public java.io.InputStream getDB2BinaryStream()
throws SQLException
Retrieves data from a DB2Xml object as a binary stream. The character encoding
of the bytes in the binary stream is defined in the XML 1.0 specification.
getDB2Bytes
Format:
public byte[] getDB2Bytes()
throws SQLExceptionn
Retrieves data from a DB2Xml object as a byte array. The character encoding of
the bytes is defined in the XML 1.0 specification.
getDB2CharacterStream
Format:
public java.io.Reader getDB2CharacterStream()
throws SQLExceptionn
Retrieves data from a DB2Xml object as a java.io.Reader object.
getDB2String
Format:
public String getDB2String()
throws SQLExceptionn
Retrieves data from a DB2Xml object as a String value.
getDB2XmlAsciiStream
Format:
public InputStream getDB2XmlAsciiStream()
throws SQLExceptionn
Retrieves data from a DB2Xml object, converts the data to US-ASCII encoding,
and imbeds an XML declaration with an encoding specification for US-ASCII
in the returned data.
getDB2XmlBinaryStream
Format:
public java.io.InputStream getDB2XmlBinaryStream(String targetEncoding)
throws SQLExceptionn
Retrieves data from a DB2Xml object as a binary stream, converts the data to
targetEncoding, and imbeds an XML declaration with an encoding specification
for targetEncoding in the returned data.
Parameter:
targetEncoding
A valid encoding name that is listed in the IANA Charset Registry. The
encoding names that are supported by the DB2 server are listed in
"Mappings of CCSIDs to encoding names for serialized XML output data".
Chapter 7. JDBC and SQLJ reference information
369

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents