|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fusesource.hawtbuf.codec.VariableCodec<T>
T
- public abstract class VariableCodec<T>
Convenience base class for Marshaller implementations which do not deepCopy and which use variable size encodings.
Constructor Summary | |
---|---|
VariableCodec()
|
Method Summary | |
---|---|
T |
deepCopy(T source)
|
int |
estimatedSize(T object)
|
int |
getFixedSize()
|
boolean |
isDeepCopySupported()
|
boolean |
isEstimatedSizeSupported()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.fusesource.hawtbuf.codec.Codec |
---|
decode, encode |
Constructor Detail |
---|
public VariableCodec()
Method Detail |
---|
public int getFixedSize()
getFixedSize
in interface Codec<T>
public boolean isDeepCopySupported()
isDeepCopySupported
in interface Codec<T>
Codec.deepCopy(Object)
operations is supported.public T deepCopy(T source)
deepCopy
in interface Codec<T>
public boolean isEstimatedSizeSupported()
isEstimatedSizeSupported
in interface Codec<T>
Codec.estimatedSize(Object)
operation is supported.public int estimatedSize(T object)
estimatedSize
in interface Codec<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |