Code example for InputStream

Methods: markSupported

0
      delegateStream.reset();
   } 
    
   @Override 
   public boolean markSupported() { 
      return delegateStream.markSupported();
   } 
 
   @Override 
   public int read() throws IOException { 
      if (++bytesRead > readLimit) {
         throw new ReadLimitReachedException("Read limit of " + readLimit + " for input stream has been reached");
      } 
 
      return delegateStream.read();
   } 
}