public interface SequentialReader
| Modifier and Type | Method and Description |
|---|---|
byte |
readByte()
Read a byte at the current cursor position.
|
int |
readInt()
Read a int at the current cursor position.
|
long |
readLong()
Read a long at the current cursor position.
|
short |
readShort()
Read a short at the current cursor position.
|
java.lang.String |
readString(int numBytes)
Reads the "modified UTF8" format defined in the Java classfile spec.
|
java.lang.String |
readString(int numBytes,
boolean replaceSlashWithDot,
boolean stripLSemicolon)
Reads the "modified UTF8" format defined in the Java classfile spec, optionally replacing '/' with '
|
int |
readUnsignedByte()
Read an unsigned byte at the current cursor position.
|
long |
readUnsignedInt()
Read a unsigned int at the current cursor position.
|
int |
readUnsignedShort()
Read a unsigned short at the current cursor position.
|
void |
skip(int bytesToSkip)
Skip the given number of bytes.
|
byte readByte()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.int readUnsignedByte()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.short readShort()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.int readUnsignedShort()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.int readInt()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.long readUnsignedInt()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.long readLong()
throws java.io.IOException
java.io.IOException - If there was an exception while reading.void skip(int bytesToSkip) throws java.io.IOException
bytesToSkip - The number of bytes to skip.java.io.IOException - If there was an exception while reading.java.lang.String readString(int numBytes,
boolean replaceSlashWithDot,
boolean stripLSemicolon)
throws java.io.IOException
numBytes - The number of bytes of the UTF8 encoding of the string.replaceSlashWithDot - If true, replace '/' with '.'.stripLSemicolon - If true, string final ';' character.java.io.IOException - If an I/O exception occurs.java.lang.String readString(int numBytes)
throws java.io.IOException
numBytes - The number of bytes of the UTF8 encoding of the string.java.io.IOException - If an I/O exception occurs.