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, toString
public XMLType()
public XMLType(SQLXML xml)
public static boolean isThreadSafeXmlFactories()
public static XMLInputFactory getXmlInputFactory()
public InputStream getBinaryStream() throws SQLException
getBinaryStream
in interface SQLXML
SQLException
public Reader getCharacterStream() throws SQLException
getCharacterStream
in interface SQLXML
SQLException
public <T extends Source> T getSource(Class<T> sourceClass) throws SQLException
getSource
in interface SQLXML
SQLException
public String getString() throws SQLException
getString
in interface SQLXML
SQLException
public OutputStream setBinaryStream() throws SQLException
setBinaryStream
in interface SQLXML
SQLException
public Writer setCharacterStream() throws SQLException
setCharacterStream
in interface SQLXML
SQLException
public void setString(String value) throws SQLException
setString
in interface SQLXML
SQLException
public void free() throws SQLException
free
in interface SQLXML
SQLException
public <T extends Result> T setResult(Class<T> resultClass) throws SQLException
setResult
in interface SQLXML
SQLException
public 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 Externalizable
readExternal
in class Streamable<SQLXML>
IOException
ClassNotFoundException
public void readExternal(ObjectInput in, byte version) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Streamable<SQLXML>
IOException
public void writeExternal(ObjectOutput out, byte version) throws IOException
IOException
public static String getEncoding(SQLXML xml)
xml
- public static String getEncoding(InputStream is)
protected void readReference(ObjectInput in) throws IOException
readReference
in class Streamable<SQLXML>
IOException
protected void writeReference(DataOutput out) throws IOException
writeReference
in class Streamable<SQLXML>
IOException
public long length() throws SQLException
length
in class Streamable<SQLXML>
SQLException
Copyright © 2018 JBoss by Red Hat. All rights reserved.