public class ImsTransformer extends Object implements Transformer
This plugin is used for harvesting IMS packages by relying on imsmanifest.xml file. The content of the file will be unzipped and displayed by using Paquete.
| Option | Description | Required | Default |
|---|---|---|---|
| id | Transformer Id | Yes | ims |
"ims": {
"id": "ims"
}
None
| Constructor and Description |
|---|
ImsTransformer()
ImsTransformer constructor
|
| Modifier and Type | Method and Description |
|---|---|
DigitalObject |
createImsPayload(DigitalObject object,
File file)
Create Payload method for Ims files
|
String |
getFileExt(File fileName)
Get File extension method
|
String |
getId()
Get Transformer ID
|
String |
getName()
Get Transformer Name
|
PluginDescription |
getPluginDetails()
Gets a PluginDescription object relating to this plugin.
|
void |
init(File jsonFile)
Init method to initialise Ims transformer
|
void |
init(String jsonString)
Init method to initialise Ims transformer
|
void |
shutdown()
Shut down the transformer plugin
|
DigitalObject |
transform(DigitalObject in,
String jsonConfig)
Transform method
|
public void init(File jsonFile) throws PluginException
init in interface PluginjsonFile - IOExceptionPluginExceptionpublic void init(String jsonString) throws PluginException
init in interface PluginjsonString - IOExceptionPluginExceptionpublic DigitalObject transform(DigitalObject in, String jsonConfig) throws TransformerException
transform in interface Transformerobject - : DigitalObject to be transformedjsonConfig - : String containing configuration for this itemTransformerExceptionpublic DigitalObject createImsPayload(DigitalObject object, File file) throws StorageException, IOException
object - : DigitalObject that store the payloadfile - : File to be stored as payloadStorageExceptionIOExceptionpublic String getName()
public PluginDescription getPluginDetails()
getPluginDetails in interface Pluginpublic void shutdown()
throws PluginException
shutdown in interface PluginPluginExceptionCopyright © 2009-2013. All Rights Reserved.