Class AbstractTikaDocumentFactory

    • Constructor Detail

      • AbstractTikaDocumentFactory

        public AbstractTikaDocumentFactory​(Properties properties)
                                    throws org.apache.commons.configuration.ConfigurationException
        Throws:
        org.apache.commons.configuration.ConfigurationException
      • AbstractTikaDocumentFactory

        public AbstractTikaDocumentFactory​(String[] property)
                                    throws org.apache.commons.configuration.ConfigurationException
        Throws:
        org.apache.commons.configuration.ConfigurationException
      • AbstractTikaDocumentFactory

        public AbstractTikaDocumentFactory()
    • Method Detail

      • numberOfFields

        public int numberOfFields()
        Description copied from interface: DocumentFactory
        Returns the number of fields present in the documents produced by this factory.
        Returns:
        the number of fields present in the documents produced by this factory.
      • fieldName

        public String fieldName​(int field)
        Description copied from interface: DocumentFactory
        Returns the symbolic name of a field.
        Parameters:
        field - the index of a field (between 0 inclusive and DocumentFactory.numberOfFields() exclusive}).
        Returns:
        the symbolic name of the field-th field.
      • fieldIndex

        public int fieldIndex​(String fieldName)
        Description copied from interface: DocumentFactory
        Returns the index of a field, given its symbolic name.
        Parameters:
        fieldName - the name of a field of this factory.
        Returns:
        the corresponding index, or -1 if there is no field with name fieldName.
      • fields

        protected abstract List<TikaField> fields()
        Returns the list of Tika fields (they will be mapped to MG4J fields whose index is their index in the list).
        Returns:
        the list of Tika fields.