public abstract class AbstractDecodingContext extends Object implements IDecodingContext
Constructor and Description |
---|
AbstractDecodingContext(List<IDecoderHandler> decoderhandlers,
List<IDecoderHandler> postprocessors,
Object usercontext,
ClassLoader classloader,
IErrorReporter errorreporter)
Initializes the context.
|
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.
|
Object |
getUserContext()
Returns the user context.
|
void |
setLastObject(Object lastobject)
Sets the last object decoded.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, readBoolean, readByte, readClassname, readSignedVarInt, readString, readVarInt
public AbstractDecodingContext(List<IDecoderHandler> decoderhandlers, List<IDecoderHandler> postprocessors, Object usercontext, ClassLoader classloader, IErrorReporter errorreporter)
public ClassLoader getClassloader()
getClassloader
in interface IDecodingContext
public List<IDecoderHandler> getDecoderHandlers()
getDecoderHandlers
in interface IDecodingContext
public List<IDecoderHandler> getPostProcessors()
getPostProcessors
in interface IDecodingContext
public Map<Integer,Object> getKnownObjects()
getKnownObjects
in interface IDecodingContext
public Object getUserContext()
public IErrorReporter getErrorReporter()
getErrorReporter
in interface IDecodingContext
public Object getLastObject()
getLastObject
in interface IDecodingContext
public void setLastObject(Object lastobject)
setLastObject
in interface IDecodingContext
lastobject
- The last object decoded.public String getCurrentClassName()
getCurrentClassName
in interface IDecodingContext
Copyright © 2015. All Rights Reserved.