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).


Constructor Index

 o ReadUntilFilter(InputStream)

Method Index

 o close()
 o initDelimiter()
 o initDelimiter(String)
 o markSupported()
Tell whether this stream supports the mark() operation.
 o read()
 o read(byte[], int, int)
Read characters into a portion of an array, one by one.

Constructors

 o ReadUntilFilter
 public ReadUntilFilter(InputStream in)

Methods

 o close
 public void close() throws IOException
Overrides:
close in class FilterInputStream
 o initDelimiter
 public void initDelimiter(String str)
 o initDelimiter
 public void initDelimiter()
 o read
 public int read() throws IOException
Overrides:
read in class FilterInputStream
 o markSupported
 public boolean markSupported()
Tell whether this stream supports the mark() operation.

Overrides:
markSupported in class FilterInputStream
 o 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