org.apache.tools.ant.filters

Class StringInputStream


public class StringInputStream
extends ReaderInputStream

Wraps a String as an InputStream.

Constructor Summary

StringInputStream(String source)
Composes a stream from a String
StringInputStream(String source, String encoding)
Composes a stream from a String with the specified encoding

Method Summary

Methods inherited from class org.apache.tools.ant.util.ReaderInputStream

available, close, mark, markSupported, read, read, reset

Constructor Details

StringInputStream

public StringInputStream(String source)
Composes a stream from a String
Parameters:
source - The string to read from. Must not be null.

StringInputStream

public StringInputStream(String source,
                         String encoding)
Composes a stream from a String with the specified encoding
Parameters:
source - The string to read from. Must not be null.
encoding - The encoding scheme. Also must not be null.

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.