org.apache.fop.util

## Class UnclosableInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - org.apache.fop.util.UnclosableInputStream

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

      public class UnclosableInputStream
      extends java.io.FilterInputStream

  Provides an InputStreamFilter which avoids closing the original stream.

- - ### Field Summary

    - ### Fields inherited from class java.io.FilterInputStream

      `in`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UnclosableInputStream(java.io.InputStream in)` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Does not close the original stream.

    - ### Methods inherited from class java.io.FilterInputStream

      `available, mark, markSupported, read, read, read, reset, skip`

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

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

- - ### Constructor Detail

    - #### UnclosableInputStream

          public UnclosableInputStream(java.io.InputStream in)

      Default constructor.
      Parameters:
        `in` - the Stream to filter.

  - ### Method Detail

    - #### close

          public void close()

      Does not close the original stream.
      Specified by:
        `close` in interface `java.io.Closeable`
      Specified by:
        `close` in interface `java.lang.AutoCloseable`
      Overrides:
        `close` in class `java.io.FilterInputStream`

Copyright 1999-2020 The Apache Software Foundation. All Rights Reserved.