ca.odell.glazedlists.io
Interface ByteCoder
public interface ByteCoder
An utility interface for converting Objects to bytes for storage or network
transport. For some common, general-purpose
ByteCoder
s, see the
GlazedLists
factory class.
Object | decode(InputStream source) - Decode the Object from the specified
InputStream .
|
void | encode(Object source, OutputStream target) - Encode the specified Object over the specified
OutputStream .
|
decode
public Object decode(InputStream source)
throws IOException
Decode the Object from the specified InputStream
. The stream should contain
exactly one Object and no further bytes before the end of the stream.
encode
public void encode(Object source,
OutputStream target)
throws IOException
Encode the specified Object over the specified OutputStream
.
Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2007-12-21 23:49