Package ghidra.util.database
Class DBBufferInputStream
java.lang.Object
java.io.InputStream
ghidra.util.database.DBBufferInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An input stream backed by a database chained buffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidmark(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) Methods inherited from class java.io.InputStream
close, nullInputStream, skipNBytes, transferTo
-
Field Details
-
buffer
-
offset
protected int offset -
mark
protected int mark
-
-
Constructor Details
-
DBBufferInputStream
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Overrides:
readin classInputStream- Throws:
IndexOutOfBoundsExceptionIOException
-
read
- Overrides:
readin classInputStream- Throws:
IndexOutOfBoundsExceptionIOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-