Class VariableCodec<T>
java.lang.Object
org.fusesource.hawtbuf.codec.VariableCodec<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Codec<T>
- Direct Known Subclasses:
AbstractBufferCodec, ObjectCodec, PBMessageFramedCodec, PBMessageUnframedCodec
-
Constructor Details
-
VariableCodec
public VariableCodec()
-
-
Method Details
-
getFixedSize
public int getFixedSize()- Specified by:
getFixedSizein interfaceCodec<T>- Returns:
- -1 if the object do not always marshall to a fixed size, otherwise return that fixed size.
-
isDeepCopySupported
public boolean isDeepCopySupported()- Specified by:
isDeepCopySupportedin interfaceCodec<T>- Returns:
- true if the
Codec.deepCopy(Object)operations is supported.
-
deepCopy
-
isEstimatedSizeSupported
public boolean isEstimatedSizeSupported()- Specified by:
isEstimatedSizeSupportedin interfaceCodec<T>- Returns:
- true if the
Codec.estimatedSize(Object)operation is supported.
-
estimatedSize
- Specified by:
estimatedSizein interfaceCodec<T>- Parameters:
object-- Returns:
- the estimated marshaled size of the object.
-