public class SerializationFactory
extends java.lang.Object
| Constructor and Description |
|---|
SerializationFactory(CryptoConfigSource config)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> SourceReader<java.io.InputStream,T> |
deserializer(java.lang.Class<T> type)
Instantiates a de-serializer for
T-values. |
<T> SinkWriter<T,java.io.OutputStream> |
serializer()
Instantiates a serializer for
T-values. |
public SerializationFactory(CryptoConfigSource config)
config - the crypto configuration.java.lang.NullPointerException - if the argument is null.public <T> SinkWriter<T,java.io.OutputStream> serializer()
T-values.T - the value type.public <T> SourceReader<java.io.InputStream,T> deserializer(java.lang.Class<T> type)
T-values.T - the value type.type - the class of T-values.java.lang.NullPointerException - if the argument is null.