fedora.server.storage.translation
Class DOTranslatorModule

java.lang.Object
  extended by fedora.server.Parameterized
      extended by fedora.server.Pluggable
          extended by fedora.server.Module
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface fedora.common.Constants
Constants.FedoraHome
 
Field Summary
 
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
 
Constructor Summary
DOTranslatorModule(java.util.Map params, Server server, java.lang.String role)
           
 
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 fedora.server.Module
getRole, getServer, postInitModule, shutdownModule
 
Methods inherited from class fedora.server.Pluggable
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters
 
Methods inherited from class fedora.server.Parameterized
getParameter, getParameter, getParameters, parameterNames, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOTranslatorModule

public DOTranslatorModule(java.util.Map params,
                          Server server,
                          java.lang.String role)
                   throws ModuleInitializationException
Throws:
ModuleInitializationException
Method Detail

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