Code example for InputStream

Methods: markSupportedreset

0
    mark = count;
    // it's okay to mark even if mark isn't supported, as reset won't work 
  } 
 
  @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();
    count = mark;
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java