public class JdkCodec extends Object implements DataCodec, HeadersCodec
DEFAULT_INSTANCE, INSTANCES| Constructor and Description |
|---|
JdkCodec() |
| Modifier and Type | Method and Description |
|---|---|
String |
contentType() |
Map<String,String> |
decode(InputStream stream) |
Object |
decode(InputStream stream,
Type type)
Uses Jdk Object Serialization.
|
void |
encode(OutputStream stream,
Map<String,String> headers) |
void |
encode(OutputStream stream,
Object value)
Uses Jdk Object Serialization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllContentTypes, getAllInstances, getInstancegetInstance, loadInstancepublic String contentType()
contentType in interface DataCodeccontentType in interface HeadersCodecpublic void encode(OutputStream stream, Object value) throws IOException
encode in interface DataCodecIOExceptionpublic void encode(OutputStream stream, Map<String,String> headers) throws IOException
encode in interface HeadersCodecIOExceptionpublic Object decode(InputStream stream, Type type) throws IOException
decode in interface DataCodecIOExceptionpublic Map<String,String> decode(InputStream stream) throws IOException
decode in interface HeadersCodecIOExceptionCopyright © 2015–2021. All rights reserved.