org.codehaus.plexus.util
public class StringInputStream extends InputStream
| Field Summary | |
|---|---|
| StringReader | in Source string, stored as a StringReader |
| Constructor Summary | |
|---|---|
| StringInputStream(String source)
Composes a stream from a String
| |
| Method Summary | |
|---|---|
| void | close()
Closes the Stringreader.
|
| void | mark(int limit)
Marks the read limit of the StringReader.
|
| boolean | markSupported() |
| int | read()
Reads from the Stringreader, returning the same value. |
| void | reset()
Resets the StringReader.
|
Parameters: source The string to read from. Must not be null.
Throws: IOException if the original StringReader fails to be closed
Parameters: limit the maximum limit of bytes that can be read before the mark position becomes invalid
See Also: InputStream#markSupported
Returns: the value of the next character in the StringReader
Throws: IOException if the original StringReader fails to be read
Throws: IOException if the StringReader fails to be reset