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 ByteCoders, see the GlazedLists factory class.
Author:
Jesse Wilson

Method Summary

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.

Method Details

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 buildd at 2008-01-04 14:38