public class Stax2StringSource extends Stax2BlockSource
Stax2BlockSource
that encapsulates
a simple String
.Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
mText |
mEncoding, mPublicId, mSystemId
Constructor and Description |
---|
Stax2StringSource(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
constructInputStream()
This method creates an
InputStream via which underlying input
source can be accessed. |
java.io.Reader |
constructReader()
This method creates a
Reader via which underlying input
source can be accessed. |
java.lang.String |
getText() |
getReference
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
public java.io.Reader constructReader() throws java.io.IOException
Stax2Source
Reader
via which underlying input
source can be accessed. Note that caller is responsible for
closing that Reader when it is done reading it.constructReader
in class Stax2BlockSource
java.io.IOException
public java.io.InputStream constructInputStream() throws java.io.IOException
Stax2Source
InputStream
via which underlying input
source can be accessed. Note that caller is responsible for
closing that InputSource when it is done reading itconstructInputStream
in class Stax2BlockSource
java.io.IOException
public java.lang.String getText()