public interface DataCodec
| Modifier and Type | Method and Description |
|---|---|
String |
contentType() |
Object |
decode(InputStream stream,
Type type) |
void |
encode(OutputStream stream,
Object value) |
static Set<String> |
getAllContentTypes() |
static Collection<DataCodec> |
getAllInstances() |
static DataCodec |
getInstance(String contentType)
Returns
DataCodec by given contentType. |
static Collection<DataCodec> getAllInstances()
static DataCodec getInstance(String contentType)
DataCodec by given contentType.contentType - contentType (required)DataCodec by given contentType (or throws IllegalArgumentException is
thrown if not exist)String contentType()
void encode(OutputStream stream, Object value) throws IOException
IOExceptionObject decode(InputStream stream, Type type) throws IOException
IOExceptionCopyright © 2015–2021. All rights reserved.