Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw.docserv
Interface DocumentFactory  view DocumentFactory download DocumentFactory.java


public interface DocumentFactory


Method Summary
 Document create(java.util.Dictionary attributes, java.io.InputStream data, boolean lock)
          Create a document.
 DocumentCollection createCollection(java.lang.String[] docids)
          Form a collection of documents.
 AttributeSignature getAttributeSignature()
          Returns the a type description of the data attributes associated with documents created by this factory.
 java.util.Dictionary makeDictionary()
          Makes an empty attribute dictionary.
 

Method Detail

getAttributeSignature

public AttributeSignature getAttributeSignature()
Returns the a type description of the data attributes associated with documents created by this factory.


makeDictionary

public java.util.Dictionary makeDictionary()
Makes an empty attribute dictionary. This dictionary may allow performance optimizations.


create

public Document create(java.util.Dictionary attributes,
                       java.io.InputStream data,
                       boolean lock)
                throws DocServException
Create a document.


createCollection

public DocumentCollection createCollection(java.lang.String[] docids)
                                    throws java.io.IOException
Form a collection of documents. This allows previously created Documents to be grouped together for common operations, such as deleting, setting a common attribute, or retrieving attributes in one call.