public interface IBinaryConverter
Modifier and Type | Method and Description |
---|---|
int |
byteSize() |
void |
fromBinary(byte[] binary,
int offset)
convert binary to object
can return already existing object for same state, example of Integer.valueOf() |
void |
initialize(HelperBinaryConversion helperBinaryConversion,
IObjectIOManagerForObjectIO objectIOManager) |
int |
toBinary(byte[] binary,
int offset,
boolean valueDefined,
Object object)
convert object value to binary
|
void initialize(HelperBinaryConversion helperBinaryConversion, IObjectIOManagerForObjectIO objectIOManager)
int byteSize()
int toBinary(byte[] binary, int offset, boolean valueDefined, Object object) throws BinaryConverterException
binary
- where put the resultoffset
- offset on binary array to write the resultvalueDefined
- true if value definedobject
- the object from which take the valueBinaryConverterException
IllegalArgumentException
- bad obbject typevoid fromBinary(byte[] binary, int offset) throws BinaryConverterException
binary
- the binary valueoffset
- offset of the binary value in binary arrayBinaryConverterException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.