| java.lang.Object java.io.InputStream org.apache.james.util.CharTerminatedInputStream
CharTerminatedInputStream | public class CharTerminatedInputStream extends InputStream (Code) | | An InputStream class that terminates the stream when it encounters a
particular byte sequence.
version: 1.0.0, 24/04/1999 |
Constructor Summary | |
public | CharTerminatedInputStream(InputStream in, char[] terminator) A constructor for this object that takes a stream to be wrapped
and a terminating character sequence. |
Method Summary | |
public int | read() Read a byte off this stream. |
CharTerminatedInputStream | public CharTerminatedInputStream(InputStream in, char[] terminator)(Code) | | A constructor for this object that takes a stream to be wrapped
and a terminating character sequence.
Parameters: in - the InputStream to be wrapped Parameters: terminator - the array of characters that will terminate the stream. throws: IllegalArgumentException - if the terminator array is null or empty |
read | public int read() throws IOException(Code) | | Read a byte off this stream.
the byte read off the stream throws: IOException - if an IOException is encountered while reading off the stream throws: ProtocolException - if the underlying stream returns -1 before the terminator is seen. |
|
|