| java.lang.Object java.io.InputStream com.sun.kvem.midp.pim.MarkableInputStream
MarkableInputStream | public class MarkableInputStream extends InputStream (Code) | | InputStream that supports mark() with an infinite lookahead.
|
Method Summary | |
public void | close() Closes the input stream. | public void | mark(int lookahead) This implementation of mark() supports infinite lookahead. | public boolean | markSupported() Checks if mark is supported. | public int | read() Reads a byte from the stream. | public int | read(byte[] b, int offset, int length) Reads next block of bytes from the stream. | public int | read(byte[] b) Reads next block of bytes from the stream. | public void | reset() Reset the line markers. |
MarkableInputStream | public MarkableInputStream(InputStream in)(Code) | | Constructs a markable input stream.
Parameters: in - input data |
mark | public void mark(int lookahead)(Code) | | This implementation of mark() supports infinite lookahead.
Parameters: lookahead - The value of this parameter is ignored. |
markSupported | public boolean markSupported()(Code) | | Checks if mark is supported.
true if mark is supported |
read | public int read(byte[] b, int offset, int length) throws IOException(Code) | | Reads next block of bytes from the stream.
Parameters: b - buffer to hold data Parameters: offset - in buffer for data read Parameters: length - size of data to read number of bytes read throws: IOException - if an error occurs |
read | public int read(byte[] b) throws IOException(Code) | | Reads next block of bytes from the stream.
Parameters: b - buffer to hold data number of bytes read throws: IOException - if an error occurs |
reset | public void reset() throws IOException(Code) | | Reset the line markers.
throws: IOException - if an error occurs accessing theinput stream |
|
|