FileDocCategorySizeDatePackage
StringInputStream.javaAPI DocApache Ant 1.701651Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.filters

StringInputStream

public class StringInputStream extends org.apache.tools.ant.util.ReaderInputStream
Wraps a String as an InputStream.

Fields Summary
Constructors Summary
public StringInputStream(String source)
Composes a stream from a String

param
source The string to read from. Must not be null.

        super(new StringReader(source));
    
public StringInputStream(String source, String encoding)
Composes a stream from a String with the specified encoding

param
source The string to read from. Must not be null.
param
encoding The encoding scheme. Also must not be null.

        super(new StringReader(source), encoding);
    
Methods Summary