Package org.codehaus.stax2.io
Class Stax2StringSource
java.lang.Object
org.codehaus.stax2.io.Stax2Source
org.codehaus.stax2.io.Stax2BlockSource
org.codehaus.stax2.io.Stax2StringSource
- All Implemented Interfaces:
Source
Simple implementation of
Stax2BlockSource
that encapsulates
a simple String
.-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.io.Stax2Source
mEncoding, mPublicId, mSystemId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method creates anInputStream
via which underlying input source can be accessed.This method creates aReader
via which underlying input source can be accessed.getText()
Methods inherited from class org.codehaus.stax2.io.Stax2BlockSource
getReference
Methods inherited from class org.codehaus.stax2.io.Stax2Source
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
-
Field Details
-
mText
-
-
Constructor Details
-
Stax2StringSource
-
-
Method Details
-
constructReader
Description copied from class:Stax2Source
This method creates aReader
via which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.- Specified by:
constructReader
in classStax2BlockSource
- Throws:
IOException
-
constructInputStream
Description copied from class:Stax2Source
This method creates anInputStream
via which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it- Specified by:
constructInputStream
in classStax2BlockSource
- Throws:
IOException
-
getText
-