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.FilterInputStream
A wrapper around an InputStream originating from aScanResult
to ensure that it is closed when the stream is closed
-
-
Field Summary
Fields Modifier and Type Field Description private io.github.classgraph.ScanResult
result
-
Constructor Summary
Constructors Constructor Description ScanResultInputStream(io.github.classgraph.ScanResult result, java.io.InputStream in)
Creates a wrapper around anInputStream
that was creating from a Class GraphScanResult
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
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 anInputStream
that was creating from a Class GraphScanResult
. This ensures that when the stream is closed we also close theScanResult
from which it originated thus avoiding any resource leaks perScanResult.close()
.- Parameters:
result
- Scan Result that originated the input streamin
- Input Stream
-
-