public interface SQLXML
Modifier and Type | Method and Description |
---|---|
void |
free()
Frees any resources held by this object.
|
InputStream |
getBinaryStream()
Returns a stream that can be used to read binary data from this SQL
XML object. |
Reader |
getCharacterStream()
Returns a reader that can be used to read character data from this SQL
XML object. |
<T extends Source> |
getSource(Class<T> sourceClass)
Returns a
Source for reading this object's data. |
String |
getString()
Returns this object's data as an XML string.
|
OutputStream |
setBinaryStream()
Returns a stream that can be used to write binary data to this SQL
XML object. |
Writer |
setCharacterStream()
Returns a writer that can be used to write character data to this SQL
XML object. |
<T extends Result> |
setResult(Class<T> resultClass)
Returns a
Result for writing this object's data. |
void |
setString(String value)
Sets this object's data to the given XML string.
|
void free() throws SQLException
free
is called, calling
method other than free
will throw SQLException
(calling free
repeatedly will do nothing).SQLException
InputStream getBinaryStream() throws SQLException
XML
object.SQLException
- if an error occurs accessing the dataOutputStream setBinaryStream() throws SQLException
XML
object.SQLException
- if an error occurs accessing the dataReader getCharacterStream() throws SQLException
XML
object.SQLException
- if an error occurs accessing the dataWriter setCharacterStream() throws SQLException
XML
object.SQLException
- if an error occurs accessing the dataString getString() throws SQLException
SQLException
- if an error occurs accessing the datavoid setString(String value) throws SQLException
SQLException
- if an error occurs accessing the data<T extends Source> T getSource(Class<T> sourceClass) throws SQLException
Source
for reading this object's data.SQLException
- if an error occurs accessing the data<T extends Result> T setResult(Class<T> resultClass) throws SQLException
Result
for writing this object's data.SQLException
- if an error occurs accessing the data