Interface WireAdapter
-
- All Known Implementing Classes:
AbstractWireAdapter,DefaultWireAdapter,WLSWireAdapter
public interface WireAdapterConcrete WireAdapter instances define the methods for transforming Entry's into serialized wire data and vice versa. WireAdapters should thrive to: - encode data efficiently and compactly - be resilient to errors -- a problem decoding an entry should not cause the decoding of subsequent entries to fail.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWireAdapter.WireAdapterHelper
-
Field Summary
Fields Modifier and Type Field Description static WireAdapter.WireAdapterHelperHELPER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()voidprepareToReadFrom(InputStream is)voidprepareToWriteTo(OutputStream out)EntryreadEntry()StringreadKey()<T> voidwrite(String key, Entry entry)
-
-
-
Field Detail
-
HELPER
static final WireAdapter.WireAdapterHelper HELPER
-
-
Method Detail
-
prepareToWriteTo
void prepareToWriteTo(OutputStream out) throws IOException
- Throws:
IOException
-
write
<T> void write(String key, Entry entry) throws IOException
- Throws:
IOException
-
flush
void flush() throws IOException- Throws:
IOException
-
prepareToReadFrom
void prepareToReadFrom(InputStream is) throws IOException
- Throws:
IOException
-
readKey
String readKey() throws IOException
- Throws:
IOException
-
readEntry
Entry readEntry() throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
-