Class ByteProviderInputStream.ClosingInputStream
java.lang.Object
java.io.InputStream
ghidra.app.util.bin.ByteProviderInputStream
ghidra.app.util.bin.ByteProviderInputStream.ClosingInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Enclosing class:
ByteProviderInputStream
An
InputStream that reads from a ByteProvider, and DOES
close() the underlying ByteProvider when
closed itself.-
Nested Class Summary
Nested classes/interfaces inherited from class ByteProviderInputStream
ByteProviderInputStream.ClosingInputStream -
Field Summary
Fields inherited from class ByteProviderInputStream
provider -
Constructor Summary
ConstructorsConstructorDescriptionClosingInputStream(ByteProvider provider) Creates anInputStreamthat reads from aByteProvider, that DOESclose()the underlying ByteProvider when closed itself. -
Method Summary
Methods inherited from class ByteProviderInputStream
available, mark, markSupported, read, read, reset, skipMethods inherited from class InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ClosingInputStream
Creates anInputStreamthat reads from aByteProvider, that DOESclose()the underlying ByteProvider when closed itself.- Parameters:
provider- theByteProviderto read from (and close)
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteProviderInputStream- Throws:
IOException
-