public interface MetadataParser
| Modifier and Type | Method and Description | 
|---|---|
| void | extractMetadata(File f,
               TypeDefinition td,
               Session session)Parse a file and extract all metadata and store them in a CMIS property bag | 
| Map<String,Object> | getCmisProperties()Return all found metadata, called after parsing is completed. | 
| String[] | getContentTypes()get all content types handled by this parser | 
| String | getMappedTypeId()get the CMIS type id used by this type | 
| PropertyMapper | getMapper()get the associated property mapper for this CMIS type | 
| void | initialize(PropertyMapper mapper,
          String contentType)Initialize a parser with a given property mapper and a content type | 
| void | reset()get ready for parsing a new file | 
void initialize(PropertyMapper mapper, String contentType)
mapper - PropertyMapper used to map tags to properties and convert valuescontentType - content type of file to extractvoid reset()
void extractMetadata(File f, TypeDefinition td, Session session) throws MapperException
f - file to parseMapperExceptionMap<String,Object> getCmisProperties()
String[] getContentTypes()
String getMappedTypeId()
PropertyMapper getMapper()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.