public int read() throws IOException { if (!fetch()) { return -1; } return (buf[offset++] & 0xff); }
public int read() throws IOException { if (!fetch()) { return -1; } return (buf[offset++] & 0xff); }
public int read() throws IOException { if (!fetch()) { return -1; } return (buf[offset++] & 0xff); }
public int read() throws IOException { if(!fetch()) return -1; return (buf[offset++] & 0xff); }
@Override public int read(byte b[], int off, int sz) throws IOException { if(!fetch()) return -1; sz = Math.min(sz, len-offset); System.arraycopy(buf,offset,b,off,sz); return sz; }
@Override public int read(byte b[], int off, int sz) throws IOException { if (!fetch()) { return -1; } sz = Math.min(sz, len-offset); System.arraycopy(buf,offset,b,off,sz); return sz; }
@Override public int read(byte b[], int off, int sz) throws IOException { if (!fetch()) { return -1; } sz = Math.min(sz, len-offset); System.arraycopy(buf,offset,b,off,sz); return sz; }
@Override public int read(byte b[], int off, int sz) throws IOException { if (!fetch()) { return -1; } sz = Math.min(sz, len-offset); System.arraycopy(buf,offset,b,off,sz); return sz; }