Interface WireAdapter
-
- All Known Implementing Classes:
AbstractWireAdapter
,DefaultWireAdapter
,WLSWireAdapter
public interface WireAdapter
Concrete 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 interface
WireAdapter.WireAdapterHelper
-
Field Summary
Fields Modifier and Type Field Description static WireAdapter.WireAdapterHelper
HELPER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flush()
void
prepareToReadFrom(InputStream is)
void
prepareToWriteTo(OutputStream out)
Entry
readEntry()
String
readKey()
<T> void
write(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:
IOException
ClassNotFoundException
-
-