public class PgSQLXML
extends java.lang.Object
implements java.sql.SQLXML
| Modifier and Type | Field and Description |
|---|---|
private boolean |
_active |
private java.io.ByteArrayOutputStream |
_byteArrayOutputStream |
private BaseConnection |
_conn |
private java.lang.String |
_data |
private javax.xml.transform.dom.DOMResult |
_domResult |
private boolean |
_freed |
private boolean |
_initialized |
private java.io.StringWriter |
_stringWriter |
| Modifier | Constructor and Description |
|---|---|
|
PgSQLXML(BaseConnection conn) |
|
PgSQLXML(BaseConnection conn,
java.lang.String data) |
private |
PgSQLXML(BaseConnection conn,
java.lang.String data,
boolean initialized) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkFreed() |
private void |
ensureInitialized() |
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.Reader |
getCharacterStream() |
<T extends javax.xml.transform.Source> |
getSource(java.lang.Class<T> sourceClass) |
java.lang.String |
getString() |
private PGXmlFactoryFactory |
getXmlFactoryFactory() |
private void |
initialize() |
java.io.OutputStream |
setBinaryStream() |
java.io.Writer |
setCharacterStream() |
<T extends javax.xml.transform.Result> |
setResult(java.lang.Class<T> resultClass) |
void |
setString(java.lang.String value) |
private final BaseConnection _conn
private java.lang.String _data
private boolean _initialized
private boolean _active
private boolean _freed
private java.io.ByteArrayOutputStream _byteArrayOutputStream
private java.io.StringWriter _stringWriter
private javax.xml.transform.dom.DOMResult _domResult
public PgSQLXML(BaseConnection conn)
public PgSQLXML(BaseConnection conn, java.lang.String data)
private PgSQLXML(BaseConnection conn, java.lang.String data, boolean initialized)
private PGXmlFactoryFactory getXmlFactoryFactory() throws java.sql.SQLException
java.sql.SQLExceptionpublic void free()
free in interface java.sql.SQLXMLpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic <T extends javax.xml.transform.Source> T getSource(java.lang.Class<T> sourceClass)
throws java.sql.SQLException
getSource in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.lang.String getString()
throws java.sql.SQLException
getString in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream()
throws java.sql.SQLException
setBinaryStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic java.io.Writer setCharacterStream()
throws java.sql.SQLException
setCharacterStream in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic <T extends javax.xml.transform.Result> T setResult(java.lang.Class<T> resultClass)
throws java.sql.SQLException
setResult in interface java.sql.SQLXMLjava.sql.SQLExceptionpublic void setString(java.lang.String value)
throws java.sql.SQLException
setString in interface java.sql.SQLXMLjava.sql.SQLExceptionprivate void checkFreed()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void ensureInitialized()
throws java.sql.SQLException
java.sql.SQLExceptionprivate void initialize()
throws java.sql.SQLException
java.sql.SQLException