Top Description Fields Constructors Methods
org.codehaus.stax2.io

public Class Stax2StringSource

extends Stax2BlockSource
Class Inheritance
Imports
java.io.*

Simple implementation of Stax2BlockSource that encapsulates a simple String.

Field Summary

Modifier and TypeField and Description
pack-priv final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InputStream
constructInputStream()

Implements abstract org.codehaus.stax2.io.Stax2BlockSource.constructInputStream.

This method creates an InputStream via which underlying input source can be accessed.
public Reader
constructReader()

Implements abstract org.codehaus.stax2.io.Stax2BlockSource.constructReader.

This method creates a Reader via which underlying input source can be accessed.
public String
Inherited from org.codehaus.stax2.io.Stax2BlockSource:
getReference

Field Detail

mTextback to summary
pack-priv final String mText

Constructor Detail

Stax2StringSourceback to summary
public Stax2StringSource(String text)

Method Detail

constructInputStreamback to summary
public InputStream constructInputStream() throws IOException

Implements abstract org.codehaus.stax2.io.Stax2BlockSource.constructInputStream.

Doc from org.codehaus.stax2.io.Stax2Source.constructInputStream.

This method creates an InputStream via which underlying input source can be accessed. Note that caller is responsible for closing that InputSource when it is done reading it

Annotations
@Override
constructReaderback to summary
public Reader constructReader() throws IOException

Implements abstract org.codehaus.stax2.io.Stax2BlockSource.constructReader.

Doc from org.codehaus.stax2.io.Stax2Source.constructReader.

This method creates a Reader via which underlying input source can be accessed. Note that caller is responsible for closing that Reader when it is done reading it.

Annotations
@Override
getTextback to summary
public String getText()