1
edit
Changes
→Example
class PushbackInputStream extends FilterInputStream {
public PushbackInputStream(InputStream in, int size) {
if (size <= 0) {
throw new IllegalArgumentException("size <= 0");
}
}
public int read(){
ensureOpen();
return buf[pos++] & 0xff;
}