public interface IDecodingContext
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassloader()
Gets the classloader.
|
java.lang.String |
getCurrentClassName()
Gets the current class name.
|
int |
getCurrentOffset()
Returns the current offset of the decoding process for debugging.
|
java.util.List<IDecoderHandler> |
getDecoderHandlers()
Returns the handlers used to decode objects.
|
IErrorReporter |
getErrorReporter()
Gets the error reporter.
|
java.util.Map<java.lang.Integer,java.lang.Object> |
getKnownObjects()
Returns the known objects.
|
java.lang.Object |
getLastObject()
Returns the last object decoded.
|
java.util.List<IDecoderHandler> |
getPostProcessors()
Returns the handlers used for post-processing.
|
byte[] |
read(byte[] array)
Reads a number of bytes from the buffer and fills the array.
|
boolean |
readBoolean()
Reads a boolean value from the buffer.
|
byte |
readByte()
Reads a byte from the buffer.
|
java.lang.String |
readClassname()
Helper method for decoding a class name.
|
long |
readSignedVarInt()
Helper method for decoding a signed variable-sized integer (VarInt).
|
java.lang.String |
readString()
Helper method for decoding a string.
|
long |
readVarInt()
Helper method for decoding a variable-sized integer (VarInt).
|
void |
setLastObject(java.lang.Object lastobject)
Sets the last object decoded.
|
java.lang.String getCurrentClassName()
java.lang.Object getLastObject()
void setLastObject(java.lang.Object lastobject)
lastobject
- The last object decoded.java.util.Map<java.lang.Integer,java.lang.Object> getKnownObjects()
java.lang.ClassLoader getClassloader()
java.util.List<IDecoderHandler> getDecoderHandlers()
IErrorReporter getErrorReporter()
java.util.List<IDecoderHandler> getPostProcessors()
byte readByte()
byte[] read(byte[] array)
array
- The byte array.boolean readBoolean()
java.lang.String readString()
long readVarInt()
long readSignedVarInt()
java.lang.String readClassname()
int getCurrentOffset()