Class ExposedBufferedInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ExposedBufferedInputStream
    extends java.io.BufferedInputStream
    Version:
    $Id: ExposedBufferedInputStream.java,v 1.3 2005/07/25 16:57:31 belaban Exp $
    Author:
    Bela Ban
    • Field Summary

      • Fields inherited from class java.io.BufferedInputStream

        buf, count, marklimit, markpos, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      ExposedBufferedInputStream​(java.io.InputStream in)
      Creates a BufferedInputStream and saves its argument, the input stream in, for later use.
      ExposedBufferedInputStream​(java.io.InputStream in, int size)
      Creates a BufferedInputStream with the specified buffer size, and saves its argument, the input stream in, for later use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void reset​(int size)  
      • Methods inherited from class java.io.BufferedInputStream

        available, close, mark, markSupported, read, read, reset, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExposedBufferedInputStream

        public ExposedBufferedInputStream​(java.io.InputStream in)
        Creates a BufferedInputStream and saves its argument, the input stream in, for later use. An internal buffer array is created and stored in buf.
        Parameters:
        in - the underlying input stream.
      • ExposedBufferedInputStream

        public ExposedBufferedInputStream​(java.io.InputStream in,
                                          int size)
        Creates a BufferedInputStream with the specified buffer size, and saves its argument, the input stream in, for later use. An internal buffer array of length size is created and stored in buf.
        Parameters:
        in - the underlying input stream.
        size - the buffer size.
        Throws:
        java.lang.IllegalArgumentException - if size <= 0.
    • Method Detail

      • reset

        public void reset​(int size)