org.apache.chemistry.opencmis.client.parser
Class MetadataParserTika

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.parser.AbstractMetadataParser
      extended by org.apache.chemistry.opencmis.client.parser.MetadataParserTika
All Implemented Interfaces:
MetadataParser

public class MetadataParserTika
extends AbstractMetadataParser

A metadata parser using the Apache Tika library

Author:
Jens

Field Summary
 
Fields inherited from class org.apache.chemistry.opencmis.client.parser.AbstractMetadataParser
cmisProperties, mapper
 
Constructor Summary
MetadataParserTika()
           
 
Method Summary
 void extractMetadata(File f, TypeDefinition td)
          Parse a file and extract all metadata and store them in a CMIS property bag
 void listMetadata(File f)
           
 
Methods inherited from class org.apache.chemistry.opencmis.client.parser.AbstractMetadataParser
getCmisProperties, getContentTypes, getMappedTypeId, getMapper, initialize, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataParserTika

public MetadataParserTika()
Method Detail

extractMetadata

public void extractMetadata(File f,
                            TypeDefinition td)
                     throws MapperException
Description copied from interface: MetadataParser
Parse a file and extract all metadata and store them in a CMIS property bag

Parameters:
f - file to parse
Throws:
MapperException

listMetadata

public void listMetadata(File f)
                  throws MapperException
Throws:
MapperException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.