to top
Android APIs
Since: API Level 9
public interface

SQLXML

java.sql.SQLXML

Class Overview

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

public abstract void free ()

Since: API Level 9

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

public abstract InputStream getBinaryStream ()

Since: API Level 9

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

Throws
SQLException if an error occurs accessing the data

public abstract Reader getCharacterStream ()

Since: API Level 9

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

Throws
SQLException if an error occurs accessing the data

public abstract T getSource (Class<T> sourceClass)

Since: API Level 9

Returns a Source for reading this object's data.

Throws
SQLException if an error occurs accessing the data

public abstract String getString ()

Since: API Level 9

Returns this object's data as an XML string.

Throws
SQLException if an error occurs accessing the data

public abstract OutputStream setBinaryStream ()

Since: API Level 9

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

Throws
SQLException if an error occurs accessing the data

public abstract Writer setCharacterStream ()

Since: API Level 9

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

Throws
SQLException if an error occurs accessing the data

public abstract T setResult (Class<T> resultClass)

Since: API Level 9

Returns a Result for writing this object's data.

Throws
SQLException if an error occurs accessing the data

public abstract void setString (String value)

Since: API Level 9

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

Throws
SQLException if an error occurs accessing the data