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
ConstructorDescriptionClosingInputStream
(ByteProvider provider) Creates anInputStream
that 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, skip
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ClosingInputStream
Creates anInputStream
that reads from aByteProvider
, that DOESclose()
the underlying ByteProvider when closed itself.- Parameters:
provider
- theByteProvider
to read from (and close)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteProviderInputStream
- Throws:
IOException
-