EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #385 background imageLoading...
Page #385 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability