| Constructor and Description |
|---|
MockSQLXML() |
MockSQLXML(Document documentContent) |
MockSQLXML(InputStream inputStreamContent) |
MockSQLXML(Reader readerContent) |
MockSQLXML(String stringContent) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
protected DocumentBuilder |
createDocumentBuilder() |
protected org.jdom.input.DOMBuilder |
createJDOMDOMBuilder() |
protected org.jdom.output.DOMOutputter |
createJDOMDOMOutputter() |
protected org.jdom.input.SAXBuilder |
createJDOMSAXBuilder() |
protected org.jdom.output.XMLOutputter |
createJDOMXMLCompareOutputter() |
protected org.jdom.output.XMLOutputter |
createJDOMXMLPrintOutputter() |
protected SAXParser |
createSAXParser() |
protected XMLInputFactory |
createXMLInputFactory() |
protected XMLOutputFactory |
createXMLOutputFactory() |
boolean |
equals(Object otherObject) |
void |
free() |
InputStream |
getBinaryStream() |
Reader |
getCharacterStream() |
InputStream |
getContentAsInputStream()
Returns the XML content as an
InputStream without affecting the
state of the object. |
Reader |
getContentAsReader()
Returns the XML content as a
Reader without affecting the
state of the object. |
String |
getContentAsString()
Returns the XML content as a string without affecting the state of
the object.
|
Document |
getContentAsW3CDocument()
Returns the XML content as a W3C
Document without affecting
the state of the object. |
Source |
getSource(Class sourceClass) |
String |
getString() |
int |
hashCode() |
boolean |
isReadable()
Returns if this object is readable.
|
boolean |
isWriteable()
Returns if this object is writeable.
|
OutputStream |
setBinaryStream() |
Writer |
setCharacterStream() |
Result |
setResult(Class resultClass) |
void |
setString(String value) |
String |
toString() |
boolean |
wasFreeCalled()
Returns if
free() has been called. |
public MockSQLXML()
public MockSQLXML(String stringContent)
public MockSQLXML(Reader readerContent)
public MockSQLXML(InputStream inputStreamContent)
public MockSQLXML(Document documentContent)
protected DocumentBuilder createDocumentBuilder()
protected SAXParser createSAXParser()
protected XMLOutputFactory createXMLOutputFactory()
protected XMLInputFactory createXMLInputFactory()
protected org.jdom.input.SAXBuilder createJDOMSAXBuilder()
protected org.jdom.input.DOMBuilder createJDOMDOMBuilder()
protected org.jdom.output.XMLOutputter createJDOMXMLPrintOutputter()
protected org.jdom.output.XMLOutputter createJDOMXMLCompareOutputter()
protected org.jdom.output.DOMOutputter createJDOMDOMOutputter()
public String getContentAsString()
get methods of java.sql.SQLXML.public InputStream getContentAsInputStream() throws SQLException
InputStream without affecting the
state of the object. This method can be called multiple times unlike
the get methods of java.sql.SQLXML.InputStreamSQLExceptionpublic Reader getContentAsReader() throws SQLException
Reader without affecting the
state of the object. This method can be called multiple times unlike
the get methods of java.sql.SQLXML.ReaderSQLExceptionpublic Document getContentAsW3CDocument()
Document without affecting
the state of the object. This method can be called multiple times unlike
the get methods of java.sql.SQLXML.Documentpublic InputStream getBinaryStream() throws SQLException
getBinaryStream in interface SQLXMLSQLExceptionpublic Reader getCharacterStream() throws SQLException
getCharacterStream in interface SQLXMLSQLExceptionpublic Source getSource(Class sourceClass) throws SQLException
getSource in interface SQLXMLSQLExceptionpublic String getString() throws SQLException
getString in interface SQLXMLSQLExceptionpublic OutputStream setBinaryStream() throws SQLException
setBinaryStream in interface SQLXMLSQLExceptionpublic Writer setCharacterStream() throws SQLException
setCharacterStream in interface SQLXMLSQLExceptionpublic Result setResult(Class resultClass) throws SQLException
setResult in interface SQLXMLSQLExceptionpublic void setString(String value) throws SQLException
setString in interface SQLXMLSQLExceptionpublic void free()
throws SQLException
free in interface SQLXMLSQLExceptionpublic boolean wasFreeCalled()
free() has been called.true if free() has been called,
false otherwisepublic boolean isReadable()
true this object is readable,
false otherwisepublic boolean isWriteable()
true this object is writeable,
false otherwiseCopyright © 2003-2014. All Rights Reserved.