public final class XMLType extends Streamable<SQLXML> implements SQLXML
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLType.Type |
CHARSET, ENCODING, length, reference, STREAMING_BATCH_SIZE_IN_BYTES| Modifier and Type | Method and Description |
|---|---|
void |
free() |
InputStream |
getBinaryStream() |
Reader |
getCharacterStream() |
String |
getEncoding() |
static String |
getEncoding(InputStream is) |
static String |
getEncoding(SQLXML xml)
Returns the encoding or null if it cannot be determined
|
<T extends Source> |
getSource(Class<T> sourceClass) |
String |
getString() |
XMLType.Type |
getType() |
static XMLInputFactory |
getXmlInputFactory() |
static boolean |
isThreadSafeXmlFactories() |
long |
length() |
void |
readExternal(ObjectInput in) |
void |
readExternal(ObjectInput in,
byte version) |
protected void |
readReference(ObjectInput in) |
OutputStream |
setBinaryStream() |
Writer |
setCharacterStream() |
void |
setEncoding(String encoding) |
<T extends Result> |
setResult(Class<T> resultClass) |
void |
setString(String value) |
void |
setType(XMLType.Type type) |
void |
writeExternal(ObjectOutput out) |
void |
writeExternal(ObjectOutput out,
byte version) |
protected void |
writeReference(DataOutput out) |
getLength, getReference, getReferenceStreamId, isBinary, setReference, setReferenceStreamId, toStringpublic XMLType()
public XMLType(SQLXML xml)
public static boolean isThreadSafeXmlFactories()
public static XMLInputFactory getXmlInputFactory()
public InputStream getBinaryStream() throws SQLException
getBinaryStream in interface SQLXMLSQLExceptionpublic Reader getCharacterStream() throws SQLException
getCharacterStream in interface SQLXMLSQLExceptionpublic <T extends Source> T getSource(Class<T> 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 void setString(String value) throws SQLException
setString in interface SQLXMLSQLExceptionpublic void free()
throws SQLException
free in interface SQLXMLSQLExceptionpublic <T extends Result> T setResult(Class<T> resultClass) throws SQLException
setResult in interface SQLXMLSQLExceptionpublic XMLType.Type getType()
public void setType(XMLType.Type type)
public String getEncoding()
public void setEncoding(String encoding)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class Streamable<SQLXML>IOExceptionClassNotFoundExceptionpublic void readExternal(ObjectInput in, byte version) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class Streamable<SQLXML>IOExceptionpublic void writeExternal(ObjectOutput out, byte version) throws IOException
IOExceptionpublic static String getEncoding(SQLXML xml)
xml - public static String getEncoding(InputStream is)
protected void readReference(ObjectInput in) throws IOException
readReference in class Streamable<SQLXML>IOExceptionprotected void writeReference(DataOutput out) throws IOException
writeReference in class Streamable<SQLXML>IOExceptionpublic long length()
throws SQLException
length in class Streamable<SQLXML>SQLExceptionCopyright © 2020. All rights reserved.