public class SubstitutionInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
SubstitutionInputStream(java.io.InputStream inputStream,
char target,
java.lang.String replacement)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
int |
read()
Reads the next byte of data from this input stream.
|
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 nullpublic 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.read
in class java.io.FilterInputStream
-1
if the end of the
stream is reached.java.io.IOException
- if an I/O error occurs.FilterInputStream.in
JCSC is released under the terms of the GNU General Public License