Class NonClosingJarInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class NonClosingJarInputStream
    extends JarInputStream
    When using a JarInputStream with an XML parser, the stream will be closed by the parser. This causes problems if multiple entries from the JAR need to be parsed. This implementation makes {close() a NO-OP and adds reallyClose() that will close the stream.