fedora.server.storage.translation
Class DOTranslatorModule
java.lang.Object
fedora.server.Parameterized
fedora.server.Pluggable
fedora.server.Module
fedora.server.storage.translation.DOTranslatorModule
- All Implemented Interfaces:
- Constants, DOTranslator
public class DOTranslatorModule
- extends Module
- implements DOTranslator
DOTranslatorImpl as a Module.
- Version:
- $Id: DOTranslatorModule.java 5220 2006-11-20 13:52:20Z cwilper $
- Author:
- cwilper@cs.cornell.edu
| Fields inherited from interface fedora.common.Constants |
ACTION, BDEF, BMECH, DATASTREAM, DC, DISSEMINATOR, ENVIRONMENT, FEDORA, FEDORA_HOME, FEDORA_SYSTEM_DEF_PID, FEDORA_SYSTEM_DEF_URI, HTTP_REQUEST, MODEL, OBJECT, RDF, RECOVERY, RELS_EXT, RESOURCE, SUBJECT, TUCANA, VIEW, XSD |
|
Method Summary |
void |
deserialize(java.io.InputStream in,
DigitalObject out,
java.lang.String format,
java.lang.String encoding,
int transContext)
|
void |
initModule()
Initializes the Module based on configuration parameters. |
void |
serialize(DigitalObject in,
java.io.OutputStream out,
java.lang.String format,
java.lang.String encoding,
int transContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOTranslatorModule
public DOTranslatorModule(java.util.Map params,
Server server,
java.lang.String role)
throws ModuleInitializationException
- Throws:
ModuleInitializationException
initModule
public void initModule()
throws ModuleInitializationException
- Description copied from class:
Module
- Initializes the Module based on configuration parameters.
- Overrides:
initModule in class Module
- Throws:
ModuleInitializationException - If initialization values are
invalid or initialization fails for some other reason.
deserialize
public void deserialize(java.io.InputStream in,
DigitalObject out,
java.lang.String format,
java.lang.String encoding,
int transContext)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedTranslationException,
ServerException
- Specified by:
deserialize in interface DOTranslator
- Throws:
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
ServerException
serialize
public void serialize(DigitalObject in,
java.io.OutputStream out,
java.lang.String format,
java.lang.String encoding,
int transContext)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedTranslationException,
ServerException
- Specified by:
serialize in interface DOTranslator
- Throws:
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
ServerException