net.semanticmetadata.lire.impl
Class ChainedDocumentBuilder

java.lang.Object
  extended by net.semanticmetadata.lire.AbstractDocumentBuilder
      extended by net.semanticmetadata.lire.impl.ChainedDocumentBuilder
All Implemented Interfaces:
DocumentBuilder

public class ChainedDocumentBuilder
extends AbstractDocumentBuilder

Created by IntelliJ IDEA. User: mlux Date: 20.02.2007 Time: 15:11:59 To change this template use File | Settings | File Templates.


Field Summary
 
Fields inherited from interface net.semanticmetadata.lire.DocumentBuilder
FIELD_NAME_AUTOCOLORCORRELOGRAM, FIELD_NAME_COLORLAYOUT, FIELD_NAME_EDGEHISTOGRAM, FIELD_NAME_IDENTIFIER, FIELD_NAME_SCALABLECOLOR, MAX_IMAGE_SIDE_LENGTH
 
Constructor Summary
ChainedDocumentBuilder()
           
 
Method Summary
 void addBuilder(DocumentBuilder builder)
           
 org.apache.lucene.document.Document createDocument(java.awt.image.BufferedImage image, java.lang.String identifier)
          Creates a new Lucene document from a BufferedImage.
 
Methods inherited from class net.semanticmetadata.lire.AbstractDocumentBuilder
createDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedDocumentBuilder

public ChainedDocumentBuilder()
Method Detail

addBuilder

public void addBuilder(DocumentBuilder builder)

createDocument

public org.apache.lucene.document.Document createDocument(java.awt.image.BufferedImage image,
                                                          java.lang.String identifier)
Description copied from interface: DocumentBuilder
Creates a new Lucene document from a BufferedImage. The identifier can be used like an id (e.g. the file name or the url of the image)

Parameters:
image - the image to index. Cannot be NULL.
identifier - an id for the image, for instance the filename or an URL. Can be NULL.
Returns:
a Lucene Document containing the indexed image.