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
Fields inherited from class org.codehaus.stax2.io.Stax2Source
mEncoding, mPublicId, mSystemId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method creates anInputStreamvia which underlying input source can be accessed.This method creates aReadervia which underlying input source can be accessed.getText()Methods inherited from class org.codehaus.stax2.io.Stax2BlockSource
getReferenceMethods inherited from class org.codehaus.stax2.io.Stax2Source
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
-
Constructor Details
-
Stax2StringSource
-
-
Method Details
-
constructReader
Description copied from class:Stax2SourceThis method creates aReadervia which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.- Specified by:
constructReaderin classStax2BlockSource- Throws:
IOException
-
constructInputStream
Description copied from class:Stax2SourceThis method creates anInputStreamvia which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it- Specified by:
constructInputStreamin classStax2BlockSource- Throws:
IOException
-
getText
-