public class GenericProtobufSerialization extends Object implements Serialization
| Constructor and Description |
|---|
GenericProtobufSerialization() |
| Modifier and Type | Method and Description |
|---|---|
ObjectInput |
deserialize(URL url,
InputStream input)
Get a deserialization implementation instance
|
String |
getContentType()
Get content type
|
byte |
getContentTypeId()
Get content type unique id, recommended that custom implementations use values greater than 20.
|
ObjectOutput |
serialize(URL url,
OutputStream output)
Get a serialization implementation instance
|
public byte getContentTypeId()
SerializationgetContentTypeId in interface Serializationpublic String getContentType()
SerializationgetContentType in interface Serializationpublic ObjectOutput serialize(URL url, OutputStream output)
Serializationserialize in interface Serializationurl - URL address for the remote serviceoutput - the underlying output streampublic ObjectInput deserialize(URL url, InputStream input)
Serializationdeserialize in interface Serializationurl - URL address for the remote serviceinput - the underlying input streamCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.