All Packages Class Hierarchy This Package Previous Next Index
Class org.ginf.helpers.ReadUntilFilter
java.lang.Object
|
+----java.io.InputStream
|
+----java.io.FilterInputStream
|
+----org.ginf.helpers.ReadUntilFilter
- public class ReadUntilFilter
- extends FilterInputStream
This input filter prohibits closing of the
original stream. This is important for
connections which have to be "kept alive"
(An XML/SAX parser may attempt to close the stream
after it finishes parsing).
-
ReadUntilFilter(InputStream)
-
-
close()
-
-
initDelimiter()
-
-
initDelimiter(String)
-
-
markSupported()
- Tell whether this stream supports the mark() operation.
-
read()
-
-
read(byte[], int, int)
- Read characters into a portion of an array, one by one.
ReadUntilFilter
public ReadUntilFilter(InputStream in)
close
public void close() throws IOException
- Overrides:
- close in class FilterInputStream
initDelimiter
public void initDelimiter(String str)
initDelimiter
public void initDelimiter()
read
public int read() throws IOException
- Overrides:
- read in class FilterInputStream
markSupported
public boolean markSupported()
- Tell whether this stream supports the mark() operation.
- Overrides:
- markSupported in class FilterInputStream
read
public int read(byte cbuf[],
int off,
int len) throws IOException
- Read characters into a portion of an array, one by one.
- Throws: IOException
- If an I/O error occurs
- Overrides:
- read in class FilterInputStream
All Packages Class Hierarchy This Package Previous Next Index