Package org.apache.storm.utils

# Class BufferInputStream

java.lang.Object
org.apache.storm.utils.BufferInputStream

All Implemented Interfaces:
  `AutoCloseable`

public class BufferInputStream extends Object implements AutoCloseable

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BufferInputStream(InputStream stream)`
  `BufferInputStream(InputStream stream, int bufferSize)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `byte[]`
  `read()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BufferInputStream

    public BufferInputStream(InputStream stream, int bufferSize)

  - ### BufferInputStream

    public BufferInputStream(InputStream stream)

- ## Method Details

  - ### read

    public byte[] read() throws IOException
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `IOException`