public class OptionalCodec extends AbstractCodec
| Constructor and Description | 
|---|
OptionalCodec()  | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
createObject(java.lang.Class<?> clazz,
            IDecodingContext context)
Creates the object during decoding. 
 | 
java.lang.Object | 
encode(java.lang.Object object,
      java.lang.Class<?> clazz,
      java.util.List<ITraverseProcessor> processors,
      Traverser traverser,
      java.util.Map<java.lang.Object,java.lang.Object> traversed,
      boolean clone,
      IEncodingContext ec)
Encode the object. 
 | 
boolean | 
isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class. 
 | 
canReference, decode, decodeSubObjects, isApplicable, process, recordKnownDecodedObject, runPreProcessorspublic boolean isApplicable(java.lang.Class<?> clazz)
isApplicable in interface IDecoderHandlerisApplicable in class AbstractCodecclazz - The class.public java.lang.Object createObject(java.lang.Class<?> clazz,
                                     IDecodingContext context)
createObject in class AbstractCodecclazz - The class of the object.context - The decoding context.public java.lang.Object encode(java.lang.Object object,
                               java.lang.Class<?> clazz,
                               java.util.List<ITraverseProcessor> processors,
                               Traverser traverser,
                               java.util.Map<java.lang.Object,java.lang.Object> traversed,
                               boolean clone,
                               IEncodingContext ec)
encode in class AbstractCodec