public abstract class AbstractEncodingContext extends Object implements IEncodingContext
Constructor and Description |
---|
AbstractEncodingContext(Object rootobject,
Object usercontext,
List<ITraverseProcessor> preprocessors,
ClassLoader classloader) |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Gets the classloader.
|
Set<Class> |
getNonInnerClassCache()
Returns the non-inner class cache.
|
List<ITraverseProcessor> |
getPreprocessors()
Returns the preprocessors.
|
Object |
getRootObject()
Get the rootobject.
|
Object |
getUserContext()
Returns the user context.
|
long |
getWrittenBytes()
Returns the number of bytes written.
|
void |
setIgnoreNextClassWrite(boolean state)
Puts the context in a state where the next call to
writeClass is ignored.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write, writeBoolean, writeByte, writeClass, writeClassname, writeSignedVarInt, writeString, writeVarInt
public AbstractEncodingContext(Object rootobject, Object usercontext, List<ITraverseProcessor> preprocessors, ClassLoader classloader)
public List<ITraverseProcessor> getPreprocessors()
getPreprocessors
in interface IEncodingContext
public ClassLoader getClassLoader()
getClassLoader
in interface IEncodingContext
public Object getRootObject()
getRootObject
in interface IEncodingContext
public long getWrittenBytes()
getWrittenBytes
in interface IEncodingContext
public Object getUserContext()
getUserContext
in interface IEncodingContext
public Set<Class> getNonInnerClassCache()
getNonInnerClassCache
in interface IEncodingContext
public void setIgnoreNextClassWrite(boolean state)
setIgnoreNextClassWrite
in interface IEncodingContext
state
- If true, the next class write will be ignored and the state reset.Copyright © 2015. All Rights Reserved.