public interface IDecodingContext
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassloader()
Gets the classloader.
|
String |
getCurrentClassName()
Gets the current class name.
|
List<IDecoderHandler> |
getDecoderHandlers()
Returns the handlers used to decode objects.
|
IErrorReporter |
getErrorReporter()
Gets the error reporter.
|
Map<Integer,Object> |
getKnownObjects()
Returns the known objects.
|
Object |
getLastObject()
Returns the last object decoded.
|
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.
|
String |
readClassname()
Helper method for decoding a class name.
|
long |
readSignedVarInt()
Helper method for decoding a signed variable-sized integer (VarInt).
|
String |
readString()
Helper method for decoding a string.
|
long |
readVarInt()
Helper method for decoding a variable-sized integer (VarInt).
|
void |
setLastObject(Object lastobject)
Sets the last object decoded.
|
String getCurrentClassName()
Object getLastObject()
void setLastObject(Object lastobject)
lastobject
- The last object decoded.Map<Integer,Object> getKnownObjects()
ClassLoader getClassloader()
List<IDecoderHandler> getDecoderHandlers()
IErrorReporter getErrorReporter()
List<IDecoderHandler> getPostProcessors()
byte readByte()
byte[] read(byte[] array)
array
- The byte array.boolean readBoolean()
String readString()
long readVarInt()
long readSignedVarInt()
String readClassname()
Copyright © 2015. All Rights Reserved.