Modifier and Type | Method and Description |
---|---|
int |
decodeBytes(byte[] source,
int startOffsetInSource,
int bytesLeftInSource)
This requests the Object to decode itself from a stream of bytes.
|
int decodeBytes(byte[] source, int startOffsetInSource, int bytesLeftInSource) throws StreamCorruptedException, ClassNotFoundException
source
- The source of the encoded bytes.startOffsetInSource
- Where the object should start decoding from.bytesLeftInSource
- The number of bytes left starting from startOffsetInSource.StreamCorruptedException
- if the data stored in the bytes is corrupted.ClassNotFoundException
- if the class of a stored object could not be found.