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, waitwrite, writeBoolean, writeByte, writeClass, writeClassname, writeSignedVarInt, writeString, writeVarIntpublic AbstractEncodingContext(Object rootobject, Object usercontext, List<ITraverseProcessor> preprocessors, ClassLoader classloader)
public List<ITraverseProcessor> getPreprocessors()
getPreprocessors in interface IEncodingContextpublic ClassLoader getClassLoader()
getClassLoader in interface IEncodingContextpublic Object getRootObject()
getRootObject in interface IEncodingContextpublic long getWrittenBytes()
getWrittenBytes in interface IEncodingContextpublic Object getUserContext()
getUserContext in interface IEncodingContextpublic Set<Class> getNonInnerClassCache()
getNonInnerClassCache in interface IEncodingContextpublic void setIgnoreNextClassWrite(boolean state)
setIgnoreNextClassWrite in interface IEncodingContextstate - If true, the next class write will be ignored and the state reset.Copyright © 2015. All Rights Reserved.