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
ConstructorsConstructorDescriptionRefdInputStream(FileSystemRef fsRef, InputStream delegate) Creates a newRefdInputStream. -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidmark(int readlimit) booleanintread()intread(byte[] b) intread(byte[] b, int off, int len) byte[]intreadNBytes(byte[] b, int off, int len) byte[]readNBytes(int len) voidreset()longskip(long n) voidskipNBytes(long n) longtransferTo(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream
-
Constructor Details
-
RefdInputStream
Creates a newRefdInputStream.- Parameters:
fsRef-FileSystemRefdelegate- the wrappedInputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytesin classInputStream- Throws:
IOException
-