|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.transformer.ims.ImsTransformer
public class ImsTransformer
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 Summary | |
|---|---|
ImsTransformer()
ImsTransformer constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImsTransformer()
| Method Detail |
|---|
public void init(File jsonFile)
throws PluginException
init in interface PluginjsonFile -
IOException
PluginException
public void init(String jsonString)
throws PluginException
init in interface PluginjsonString -
IOException
PluginException
public DigitalObject transform(DigitalObject in,
String jsonConfig)
throws TransformerException
transform in interface Transformerobject - : DigitalObject to be transformedjsonConfig - : String containing configuration for this item
TransformerException
public DigitalObject createImsPayload(DigitalObject object,
File file)
throws StorageException,
IOException
object - : DigitalObject that store the payloadfile - : File to be stored as payload
StorageException
IOExceptionpublic String getId()
getId in interface Pluginpublic String getName()
getName in interface Pluginpublic PluginDescription getPluginDetails()
getPluginDetails in interface Plugin
public void shutdown()
throws PluginException
shutdown in interface PluginPluginExceptionpublic String getFileExt(File fileName)
fileName -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||