org.deepfs.fsml.plugin
Class SpotlightExtractor

java.lang.Object
  extended by org.deepfs.fsml.plugin.SpotlightExtractor
All Implemented Interfaces:
IFileParser

public final class SpotlightExtractor
extends Object
implements IFileParser

Extracts metadata from Apple's Spotlight.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Bastian Lemke

Constructor Summary
SpotlightExtractor()
          Constructor.
 
Method Summary
 boolean check(DeepFile deepFile)
           Checks if there is a File in correct format and can be read by the parser.
 void extract(DeepFile deepFile)
          Extracts metadata and file contents.
 void propagate(DeepFile deepFile)
          Propagates the metadata and file contents back to the file in the file system.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotlightExtractor

public SpotlightExtractor()
                   throws ParserException
Constructor.

Throws:
ParserException - if the spotex library is not available
Method Detail

check

public boolean check(DeepFile deepFile)
Description copied from interface: IFileParser

Checks if there is a File in correct format and can be read by the parser. Checks e.g. header bytes.

Specified by:
check in interface IFileParser
Parameters:
deepFile - the DeepFile to read from
Returns:
true if the file is supported

extract

public void extract(DeepFile deepFile)
Description copied from interface: IFileParser
Extracts metadata and file contents.

Specified by:
extract in interface IFileParser
Parameters:
deepFile - the DeepFile to save metadata and content to

propagate

public void propagate(DeepFile deepFile)
Description copied from interface: IFileParser
Propagates the metadata and file contents back to the file in the file system.

Specified by:
propagate in interface IFileParser
Parameters:
deepFile - the DeepFile that contains the metadata and file contents