java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.rvesse.airline.parser.resources.jpms.ScanResultInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

class ScanResultInputStream extends FilterInputStream
A wrapper around an InputStream originating from a ScanResult to ensure that it is closed when the stream is closed
  • Field Details

    • result

      private final io.github.classgraph.ScanResult result
  • Constructor Details

    • ScanResultInputStream

      ScanResultInputStream(io.github.classgraph.ScanResult result, InputStream in)
      Creates a wrapper around an InputStream that was creating from a Class Graph ScanResult. This ensures that when the stream is closed we also close the ScanResult from which it originated thus avoiding any resource leaks per ScanResult.close().
      Parameters:
      result - Scan Result that originated the input stream
      in - Input Stream
  • Method Details