Package com.norconex.commons.lang.io

# Class ReverseFileInputStream

java.lang.Object
java.io.InputStream
com.norconex.commons.lang.io.ReverseFileInputStream

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

public class ReverseFileInputStream extends InputStream
`InputStream` implementation for streaming files in reverse order (from the end of file to its beginning).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReverseFileInputStream(File file)`
  Creates a new `ReverseFileInputStream` instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `int`
  `read()`

  ### Methods inherited from class java.io.InputStream

  `available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo`

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

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

- ## Constructor Details

  - ### ReverseFileInputStream

    public ReverseFileInputStream(File file) throws IOException
    Creates a new `ReverseFileInputStream` instance.
    Parameters:
      `file` - the file to stream
    Throws:
      `IOException` - problem streaming the file

- ## Method Details

  - ### read

    public int read() throws IOException
    Specified by:
      `read` in class `InputStream`
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Overrides:
      `close` in class `InputStream`
    Throws:
      `IOException`