public interface DODeserializer
Implementations of this interface MUST implement a public, no-arg constructor.
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(InputStream in,
DigitalObject obj,
String encoding,
int transContext)
Deserializes the given stream.
|
DODeserializer |
getInstance()
Creates a new deserializer that the same format as this one.
|
DODeserializer getInstance()
void deserialize(InputStream in, DigitalObject obj, String encoding, int transContext) throws ObjectIntegrityException, StreamIOException, UnsupportedEncodingException
in - the stream to read from (closed when finished).obj - the object to deserialize into.encoding - the character encoding if the format is text-based.transContext - the translation context.ObjectIntegrityException - if the stream does not properly encode an object.StreamIOException - if there is an error reading from the stream.UnsupportedEncodingException - if the encoding is not supported by the JVM.DOTranslationUtility.DESERIALIZE_INSTANCECopyright © 2013 DuraSpace. All Rights Reserved.