@Override public long skip(long n) throws IOException { long r=0; while (n>0) { int ch = read(); if (ch<0) break; n--; r++; } return r; } }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i=0; i<len; i++) { int ch = read(); if (ch<0) break; b[off+i] = (byte)ch; } return i==0 ? -1 : i; }
@Override public long skip(long n) throws IOException { long r=0; while (n>0) { int ch = read(); if (ch<0) break; n--; r++; } return r; } }
@Override public long skip(long n) throws IOException { long r=0; while (n>0) { int ch = read(); if (ch<0) break; n--; r++; } return r; } }
@Override public long skip(long n) throws IOException { long r=0; while (n>0) { int ch = read(); if (ch<0) break; n--; r++; } return r; } }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i=0; i<len; i++) { int ch = read(); if (ch<0) break; b[off+i] = (byte)ch; } return i==0 ? -1 : i; }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i=0; i<len; i++) { int ch = read(); if (ch<0) break; b[off+i] = (byte)ch; } return i==0 ? -1 : i; }
@Override public long skip(long n) throws IOException { long r = 0; while (n > 0) { int ch = read(); if (ch < 0) { break; } n--; r++; } return r; } }
@Override public long skip(long n) throws IOException { long r=0; while (n>0) { int ch = read(); if (ch<0) break; n--; r++; } return r; } }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i = 0; i < len; i++) { int ch = read(); if (ch < 0) { break; } b[off + i] = (byte) ch; } return i == 0 ? -1 : i; }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i=0; i<len; i++) { int ch = read(); if (ch<0) break; b[off+i] = (byte)ch; } return i==0 ? -1 : i; }
@Override public int read(byte[] b, int off, int len) throws IOException { int i; for (i=0; i<len; i++) { int ch = read(); if (ch<0) break; b[off+i] = (byte)ch; } return i==0 ? -1 : i; }