|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.pipelets.MimeTypeIdentifyPipelet
public class MimeTypeIdentifyPipelet
The simple MIME type identifier is able to detect MIME types based on a static extension mapping.
| Field Summary | |
|---|---|
static java.lang.String |
CONTENT_ATTACHMENT
Constant for the configuration property ContentAttachment. |
static java.lang.String |
FILE_EXTENSION_ATTRIBUTE
Constant for the configuration property FileExtensionAttribute. |
static java.lang.String |
META_DATA_ATTRIBUTE
Constant for the configuration property MimeTypeAttribute. |
static java.lang.String |
MIME_TYPE_ATTRIBUTE
Constant for the configuration property MimeTypeAttribute. |
| Constructor Summary | |
|---|---|
MimeTypeIdentifyPipelet()
|
|
| Method Summary | |
|---|---|
void |
configure(AnyMap configuration)
read configuration parameters. |
protected void |
configure(ParameterAccessor paramAccessor)
configures the class based on a parameter accessor instance. |
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_EXTENSION_ATTRIBUTE
public static final java.lang.String CONTENT_ATTACHMENT
public static final java.lang.String META_DATA_ATTRIBUTE
public static final java.lang.String MIME_TYPE_ATTRIBUTE
| Constructor Detail |
|---|
public MimeTypeIdentifyPipelet()
| Method Detail |
|---|
public void configure(AnyMap configuration)
throws ProcessingException
configure in interface Pipeletconfiguration - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)
protected void configure(ParameterAccessor paramAccessor)
throws ProcessingException
paramAccessor - the ParameterAccessor instance
ProcessingException - not all required parameters have been configured.
public java.lang.String[] process(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
process in interface Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||