public interface IEncodingContext
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.
|
void |
write(byte[] b)
Writes a byte array.
|
void |
writeBoolean(boolean bool)
Writes a boolean value.
|
void |
writeByte(byte b)
Writes a byte.
|
void |
writeClass(Class<?> clazz)
Writes a class to the context.
|
int |
writeClassname(String name)
Writes the name of a class.
|
void |
writeSignedVarInt(long value)
Writes a signed variable integer to the encoding context.
|
void |
writeString(String string)
Writes a string to the context.
|
void |
writeVarInt(long value)
Writes a variable integer to the encoding context.
|
List<ITraverseProcessor> getPreprocessors()
ClassLoader getClassLoader()
Object getRootObject()
Object getUserContext()
Set<Class> getNonInnerClassCache()
void setIgnoreNextClassWrite(boolean state)
state
- If true, the next class write will be ignored and the state reset.void writeByte(byte b)
b
- The byte.void write(byte[] b)
b
- The byte array.void writeBoolean(boolean bool)
bool
- The value.void writeString(String string)
string
- The string.void writeVarInt(long value)
value
- The value.void writeSignedVarInt(long value)
value
- The value.void writeClass(Class<?> clazz)
clazz
- The class.int writeClassname(String name)
name
- The name of the class.long getWrittenBytes()
Copyright © 2015. All Rights Reserved.