public abstract class AbstractDecodingContext extends java.lang.Object implements IDecodingContext
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classloader
The classloader
|
protected java.lang.String |
currentclassname
The current class name.
|
protected java.util.List<IDecoderHandler> |
decoderhandlers
The decoder handlers.
|
protected IErrorReporter |
errorreporter
Error Reporter
|
protected java.util.Map<java.lang.Integer,java.lang.Object> |
knownobjects
Already known objects
|
protected java.lang.Object |
lastobject
The last decoded object
|
protected java.util.List<IDecoderHandler> |
postprocessors
The postprocessors.
|
protected java.lang.Object |
usercontext
A user context.
|
Constructor and Description |
---|
AbstractDecodingContext(java.util.List<IDecoderHandler> decoderhandlers,
java.util.List<IDecoderHandler> postprocessors,
java.lang.Object usercontext,
java.lang.ClassLoader classloader,
IErrorReporter errorreporter)
Initializes the context.
|
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassloader()
Gets the classloader.
|
java.lang.String |
getCurrentClassName()
Gets the current class name.
|
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.
|
java.lang.Object |
getUserContext()
Returns the user context.
|
protected void |
setCurrentClassName(java.lang.String currentclassname)
Sets the current class name.
|
void |
setLastObject(java.lang.Object lastobject)
Sets the last object decoded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, readBoolean, readByte, readClassname, readSignedVarInt, readString, readVarInt
protected java.lang.ClassLoader classloader
protected java.util.List<IDecoderHandler> decoderhandlers
protected java.lang.Object usercontext
protected java.util.List<IDecoderHandler> postprocessors
protected java.lang.Object lastobject
protected java.lang.String currentclassname
protected IErrorReporter errorreporter
protected java.util.Map<java.lang.Integer,java.lang.Object> knownobjects
public AbstractDecodingContext(java.util.List<IDecoderHandler> decoderhandlers, java.util.List<IDecoderHandler> postprocessors, java.lang.Object usercontext, java.lang.ClassLoader classloader, IErrorReporter errorreporter)
public java.lang.ClassLoader getClassloader()
getClassloader
in interface IDecodingContext
public java.util.List<IDecoderHandler> getDecoderHandlers()
getDecoderHandlers
in interface IDecodingContext
public java.util.List<IDecoderHandler> getPostProcessors()
getPostProcessors
in interface IDecodingContext
public java.util.Map<java.lang.Integer,java.lang.Object> getKnownObjects()
getKnownObjects
in interface IDecodingContext
public java.lang.Object getUserContext()
public IErrorReporter getErrorReporter()
getErrorReporter
in interface IDecodingContext
public java.lang.Object getLastObject()
getLastObject
in interface IDecodingContext
public void setLastObject(java.lang.Object lastobject)
setLastObject
in interface IDecodingContext
lastobject
- The last object decoded.public java.lang.String getCurrentClassName()
getCurrentClassName
in interface IDecodingContext
protected void setCurrentClassName(java.lang.String currentclassname)