Package ghidra.app.util.bin
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 ghidra.app.util.bin.ByteProviderInputStream
ByteProviderInputStream.ClosingInputStream -
Field Summary
Fields inherited from class ghidra.app.util.bin.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 ghidra.app.util.bin.ByteProviderInputStream
available, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.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
-