com.inspirel.yami
Interface YAMISerializable

All Known Implementing Classes:
Parameters, RawBinaryDataSource

public interface YAMISerializable

Common interface for serializable entities in YAMI.


Method Summary
 java.util.List<byte[]> serialize(int chunkSize)
          Serializes the content of this object.
 

Method Detail

serialize

java.util.List<byte[]> serialize(int chunkSize)
Serializes the content of this object.

The content is serialized into chunks of the given size, after serialization only the last chunk can be smaller than the requested size.

Parameters:
chunkSize - chunk size, should be a multiple of 4 or Integer.MAX_VALUE
Returns:
list of buffers (chunks) with serialized data
Throws:
java.lang.IllegalArgumentException - if requested chunk size is not a multiple of 4 and is not Integer.MAX_VALUE