Methods Summary |
---|
public void | close()Close the stream.
in.close();
in = null;
|
public void | mark(int readAheadLimit)Mark the present position in the stream.
if (in.markSupported()) {
in.mark(readAheadLimit);
} else {
throw new IOException("mark() not supported");
}
|
public boolean | markSupported()Tell whether this stream supports the mark() operation.
return in.markSupported();
|
public java.io.Reader | open(java.io.InputStream in, java.lang.String enc)Open the reader
this.in = in;
return this;
|
public boolean | ready()Tell whether the underlying byte stream is ready to be read. Return
false for those streams that do not support available(), such as the
Win32 console stream.
try {
return in.available() > 0;
} catch (IOException x) {
return false;
}
|
public void | reset()Reset the stream.
in.reset();
|
public abstract int | sizeOf(byte[] array, int offset, int length)Get the size in chars of an array of bytes
|