org.fcrepo.server.storage.translation
Interface DODeserializer

All Known Implementing Classes:
Atom1_1DODeserializer, AtomDODeserializer, AtomZip1_1DODeserializer, FOXML1_0DODeserializer, FOXML1_1DODeserializer, FOXMLDODeserializer, METSFedoraExt1_0DODeserializer, METSFedoraExt1_1DODeserializer, METSFedoraExtDODeserializer

public interface DODeserializer

Reads a Fedora object in some format.

Implementations of this interface MUST implement a public, no-arg constructor.

Author:
Chris Wilper

Method Summary
 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.
 

Method Detail

getInstance

DODeserializer getInstance()
Creates a new deserializer that the same format as this one.


deserialize

void deserialize(InputStream in,
                 DigitalObject obj,
                 String encoding,
                 int transContext)
                 throws ObjectIntegrityException,
                        StreamIOException,
                        UnsupportedEncodingException
Deserializes the given stream.

Parameters:
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.
Throws:
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.
See Also:
DOTranslationUtility.DESERIALIZE_INSTANCE


Copyright © 2011 DuraSpace. All Rights Reserved.