opennlp.tools.util.model

## Class UncloseableInputStream

- java.lang.Object
- - java.io.InputStream
  - - java.io.FilterInputStream
    - - opennlp.tools.util.model.UncloseableInputStream

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class UncloseableInputStream
      extends FilterInputStream

  An `InputStream` which cannot be closed.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UncloseableInputStream(InputStream in)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` This method does not has any effect the `InputStream` cannot be closed.

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

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

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

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

- - ### Constructor Detail

    - #### UncloseableInputStream

          public UncloseableInputStream(InputStream in)

  - ### Method Detail

    - #### close

          public void close()
                     throws IOException

      This method does not has any effect the `InputStream` cannot be closed.
      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Overrides:
        `close` in class `FilterInputStream`
      Throws:
        `IOException`

Copyright © 2026 The Apache Software Foundation. All rights reserved.