Class ScanResultInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.github.rvesse.airline.parser.resources.jpms.ScanResultInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class ScanResultInputStream extends java.io.FilterInputStreamA wrapper around an InputStream originating from aScanResultto ensure that it is closed when the stream is closed
-
-
Field Summary
Fields Modifier and Type Field Description private io.github.classgraph.ScanResultresult
-
Constructor Summary
Constructors Constructor Description ScanResultInputStream(io.github.classgraph.ScanResult result, java.io.InputStream in)Creates a wrapper around anInputStreamthat was creating from a Class GraphScanResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
-
-
-
Constructor Detail
-
ScanResultInputStream
ScanResultInputStream(io.github.classgraph.ScanResult result, java.io.InputStream in)Creates a wrapper around anInputStreamthat was creating from a Class GraphScanResult. This ensures that when the stream is closed we also close theScanResultfrom which it originated thus avoiding any resource leaks perScanResult.close().- Parameters:
result- Scan Result that originated the input streamin- Input Stream
-
-