Skip to content

Most visited

Recently visited

navigation
Added in API level 9

SQLXML

public interface SQLXML

java.sql.SQLXML


Maps SQL's XML type into Java.

Summary

Public methods

abstract void free()

Frees any resources held by this object.

abstract InputStream getBinaryStream()

Returns a stream that can be used to read binary data from this SQL XML object.

abstract Reader getCharacterStream()

Returns a reader that can be used to read character data from this SQL XML object.

abstract <T extends Source> T getSource(Class<T> sourceClass)

Returns a Source for reading this object's data.

abstract String getString()

Returns this object's data as an XML string.

abstract OutputStream setBinaryStream()

Returns a stream that can be used to write binary data to this SQL XML object.

abstract Writer setCharacterStream()

Returns a writer that can be used to write character data to this SQL XML object.

abstract <T extends Result> T setResult(Class<T> resultClass)

Returns a Result for writing this object's data.

abstract void setString(String value)

Sets this object's data to the given XML string.

Public methods

free

Added in API level 9
void free ()

Frees any resources held by this object. After free is called, calling method other than free will throw SQLException (calling free repeatedly will do nothing).

Throws
SQLException

getBinaryStream

Added in API level 9
InputStream getBinaryStream ()

Returns a stream that can be used to read binary data from this SQL XML object.

Returns
InputStream
Throws
SQLException if an error occurs accessing the data

getCharacterStream

Added in API level 9
Reader getCharacterStream ()

Returns a reader that can be used to read character data from this SQL XML object.

Returns
Reader
Throws
SQLException if an error occurs accessing the data

getSource

Added in API level 9
T getSource (Class<T> sourceClass)

Returns a Source for reading this object's data.

Parameters
sourceClass Class
Returns
T
Throws
SQLException if an error occurs accessing the data

getString

Added in API level 9
String getString ()

Returns this object's data as an XML string.

Returns
String
Throws
SQLException if an error occurs accessing the data

setBinaryStream

Added in API level 9
OutputStream setBinaryStream ()

Returns a stream that can be used to write binary data to this SQL XML object.

Returns
OutputStream
Throws
SQLException if an error occurs accessing the data

setCharacterStream

Added in API level 9
Writer setCharacterStream ()

Returns a writer that can be used to write character data to this SQL XML object.

Returns
Writer
Throws
SQLException if an error occurs accessing the data

setResult

Added in API level 9
T setResult (Class<T> resultClass)

Returns a Result for writing this object's data.

Parameters
resultClass Class
Returns
T
Throws
SQLException if an error occurs accessing the data

setString

Added in API level 9
void setString (String value)

Sets this object's data to the given XML string.

Parameters
value String
Throws
SQLException if an error occurs accessing the data
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.