Code example for BufferedInputStream

0
 
public class BufferedServletInputStream extends ServletInputStream { 
   private final BufferedInputStream inputStream;
    
   public BufferedServletInputStream(InputStream inputStream) {
      this.inputStream = new BufferedInputStream(inputStream);
   } 
    
   @Override 
   public int available() throws IOException { 
      return inputStream.available();
   } 
    
   @Override 
   public void close() throws IOException { 
      inputStream.close();
   } 
    
   @Override 
   public void reset() throws IOException { 
      inputStream.reset();