Package ghidra.formats.gfilesystem
Class RefdInputStream
java.lang.Object
java.io.InputStream
ghidra.formats.gfilesystem.RefdInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An
InputStream
wrapper that keeps a FileSystemRef
pinned.-
Constructor Summary
ConstructorDescriptionRefdInputStream
(FileSystemRef fsRef, InputStream delegate) Creates a newRefdInputStream
. -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) byte[]
int
readNBytes
(byte[] b, int off, int len) byte[]
readNBytes
(int len) void
reset()
long
skip
(long n) void
skipNBytes
(long n) long
transferTo
(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream
-
Constructor Details
-
RefdInputStream
Creates a newRefdInputStream
.- Parameters:
fsRef
-FileSystemRef
delegate
- the wrappedInputStream
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
transferTo
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytes
in classInputStream
- Throws:
IOException
-