Top Description Constructors Methods
org.apache.tools.ant.filters

public Class StringInputStream

extends ReaderInputStream
Class Inheritance
Imports
java.io.StringReader, org.apache.tools.ant.util.ReaderInputStream

Wraps a String as an InputStream.

Constructor Summary

AccessConstructor and Description
public
StringInputStream(String
The string to read from. Must not be null.
source
)

Composes a stream from a String

public
StringInputStream(String
The string to read from. Must not be null.
source
,
String
The encoding scheme. Also must not be null.
encoding
)

Composes a stream from a String with the specified encoding

Method Summary

Inherited from org.apache.tools.ant.util.ReaderInputStream:
closereadreadread

Constructor Detail

StringInputStreamback to summary
public StringInputStream(String source)

Composes a stream from a String

Parameters
source:String

The string to read from. Must not be null.

StringInputStreamback to summary
public StringInputStream(String source, String encoding)

Composes a stream from a String with the specified encoding

Parameters
source:String

The string to read from. Must not be null.

encoding:String

The encoding scheme. Also must not be null.