Package jadex.binary
Class BigIntegerCodec
- java.lang.Object
- 
- jadex.binary.AbstractCodec
- 
- jadex.binary.BigIntegerCodec
 
 
- 
- All Implemented Interfaces:
- IDecoderHandler,- ITraverseProcessor
 
 public class BigIntegerCodec extends AbstractCodec Codec for big integers.
- 
- 
Constructor SummaryConstructors Constructor Description BigIntegerCodec()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateObject(java.lang.Class<?> clazz, IDecodingContext context)Creates the object during decoding.java.lang.Objectencode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)Encode the object.booleanisApplicable(java.lang.Class<?> clazz)Tests if the decoder can decode the class.booleanisApplicable(java.lang.Object object, java.lang.Class<?> clazz, boolean clone, java.lang.ClassLoader targetcl)Test if the processor is applicable.- 
Methods inherited from class jadex.binary.AbstractCodeccanReference, decode, decodeSubObjects, isApplicable, isFixedFrame, process, recordKnownDecodedObject
 
- 
 
- 
- 
- 
Method Detail- 
isApplicablepublic boolean isApplicable(java.lang.Class<?> clazz) Tests if the decoder can decode the class.- Specified by:
- isApplicablein interface- IDecoderHandler
- Specified by:
- isApplicablein class- AbstractCodec
- Parameters:
- clazz- The class.
- Returns:
- True, if the decoder can decode this class.
 
 - 
createObjectpublic java.lang.Object createObject(java.lang.Class<?> clazz, IDecodingContext context)Creates the object during decoding.- Specified by:
- createObjectin class- AbstractCodec
- Parameters:
- clazz- The class of the object.
- context- The decoding context.
- Returns:
- The created object.
 
 - 
isApplicablepublic boolean isApplicable(java.lang.Object object, java.lang.Class<?> clazz, boolean clone, java.lang.ClassLoader targetcl)Test if the processor is applicable.- Parameters:
- object- The object.
- targetcl- If not null, the traverser should make sure that the result object is compatible with the class loader, e.g. by cloning the object using the class loaded from the target class loader.
- Returns:
- True, if is applicable.
 
 - 
encodepublic java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)Encode the object.- Specified by:
- encodein class- AbstractCodec
 
 
- 
 
-