|
StringInputStream (Apache Ant API)
org.apache.tools.ant.filters
|
Constructor Summary | |
StringInputStream(java.lang.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. |
Methods inherited from class java.io.InputStream |
available, read, read, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringInputStream(java.lang.String source)
source
- The string to read from. Must not be null
.Method Detail |
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if the original StringReader fails to be readpublic void close() throws java.io.IOException
close
in class java.io.InputStream
java.io.IOException
- if the original StringReader fails to be closedpublic void mark(int limit)
mark
in class java.io.InputStream
limit
- the maximum limit of bytes that can be read before the
mark position becomes invalidpublic void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
- if the StringReader fails to be resetpublic boolean markSupported()
markSupported
in class java.io.InputStream
InputStream.markSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |