|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SortingCollection.Codec<T>
Client must implement this class, which defines the way in which records are written to and read from file.
Method Summary | |
---|---|
SortingCollection.Codec<T> |
clone()
Must return a cloned copy of the codec that can be used independently of the original instance. |
T |
decode()
Read the next record from the input stream and convert into a java object. |
void |
encode(T val)
Write object to output stream |
void |
setInputStream(java.io.InputStream is)
Where to read encoded input from |
void |
setOutputStream(java.io.OutputStream os)
Where to write encoded output |
Method Detail |
---|
void setOutputStream(java.io.OutputStream os)
os
- void setInputStream(java.io.InputStream is)
is
- void encode(T val)
val
- what to writeT decode()
SortingCollection.Codec<T> clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |