Code example for InputStream

Methods: markSupportedreset

0
    } 
    return result;
  } 
 
  @Override public void reset() throws IOException { 
    if (!in.markSupported()) {
      throw new IOException("Mark not supported");
    } 
    if (mark == -1) {
      throw new IOException("Mark not set");
    } 
 
    in.reset();
    left = mark;
  } 
 
  @Override public long skip(long n) throws IOException {
    n = Math.min(n, left);
    long skipped = in.skip(n);
    left -= skipped;
Contextual code suggestions in your IDE  Get Codota for Java