public abstract class Serializer extends Object
| Constructor and Description |
|---|
Serializer() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
binaryProtocol() |
protected <T> T |
cast(Object o) |
abstract <T extends PMessage<T>> |
deserialize(InputStream input,
PService service) |
abstract <T extends PMessage<T>,TF extends PField> |
deserialize(InputStream input,
PStructDescriptor<T,TF> descriptor) |
abstract String |
mimeType() |
abstract <T extends PMessage<T>> |
serialize(OutputStream output,
PServiceCall<T> call) |
abstract <T extends PMessage<T>> |
serialize(OutputStream output,
T message) |
public abstract <T extends PMessage<T>> int serialize(OutputStream output, T message) throws IOException, SerializerException
IOExceptionSerializerExceptionpublic abstract <T extends PMessage<T>> int serialize(OutputStream output, PServiceCall<T> call) throws IOException, SerializerException
IOExceptionSerializerExceptionpublic abstract <T extends PMessage<T>,TF extends PField> T deserialize(InputStream input, PStructDescriptor<T,TF> descriptor) throws IOException, SerializerException
IOExceptionSerializerExceptionpublic abstract <T extends PMessage<T>> PServiceCall<T> deserialize(InputStream input, PService service) throws SerializerException
SerializerExceptionpublic abstract boolean binaryProtocol()
public abstract String mimeType()
protected <T> T cast(Object o)
Copyright © 2016. All rights reserved.