Class CloseIgnoringInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.docx4j.org.apache.poi.util.CloseIgnoringInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class CloseIgnoringInputStream
extends java.io.FilterInputStream
A wrapper around an InputStream, which ignores close requests made to it. Useful with POIFSFileSystem, where you want to control the close yourself.
  • Field Summary

    Fields inherited from class java.io.FilterInputStream

    in
  • Constructor Summary

    Constructors 
    Constructor Description
    CloseIgnoringInputStream​(java.io.InputStream in)  
  • Method Summary

    Modifier and Type Method Description
    void close()  

    Methods inherited from class java.io.FilterInputStream

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

    Methods inherited from class java.io.InputStream

    nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

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

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.FilterInputStream