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 Detail

encode

void encode(Object source,
            OutputStream target)
            throws IOException
Encode the specified Object over the specified OutputStream.

Throws:
IOException

decode

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.

Throws:
IOException


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2017-03-13 22:58