Code example for InputStream

Methods: mark

0
      this.readLimit = readLimit;
   } 
    
   @Override 
   public void mark(int readlimit) {
      delegateStream.mark(readlimit);
   } 
    
   @Override 
   public void reset() throws IOException { 
      delegateStream.reset();
   } 
    
   @Override 
   public boolean markSupported() { 
      return delegateStream.markSupported();
   } 
 
   @Override 
   public int read() throws IOException { 
      if (++bytesRead > readLimit) {