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() |
getReferencegetEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemIdpublic java.io.Reader constructReader()
throws java.io.IOException
Stax2SourceReader 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 Stax2BlockSourcejava.io.IOExceptionpublic java.io.InputStream constructInputStream()
throws java.io.IOException
Stax2SourceInputStream 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 Stax2BlockSourcejava.io.IOExceptionpublic java.lang.String getText()