|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.stax2.io.Stax2Source
org.codehaus.stax2.io.Stax2BlockSource
org.codehaus.stax2.io.Stax2StringSource
public class Stax2StringSource
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 | |
---|---|
Stax2StringSource(java.lang.String text)
|
Method Summary | |
---|---|
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()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stax2StringSource(java.lang.String text)
Method Detail |
---|
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 it
constructInputStream
in class Stax2BlockSource
java.io.IOException
public java.lang.String getText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |