|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
rj.tools.util.SubstitutionInputStream
| Field Summary |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
SubstitutionInputStream(java.io.InputStream inputStream,
char target,
java.lang.String replacement)
Creates a new instance |
|
| Method Summary | |
int |
read()
Reads the next byte of data from this input stream. |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SubstitutionInputStream(java.io.InputStream inputStream,
char target,
java.lang.String replacement)
inputStream - stream to parse and replace targets; must not be nulltarget - char to be replaced; must not be nullreplacement - replacement; must not be null| Method Detail |
public int read()
throws java.io.IOException
int in the range
0 to 255. If no byte is available
because the end of the stream has been reached, the value
-1 is returned. This method blocks until input data
is available, the end of the stream is detected, or an exception
is thrown.
This method
simply performs in.read() and returns the result.
-1 if the end of the
stream is reached.
java.io.IOException - if an I/O error occurs.FilterInputStream.in
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||