Class RepositoryDocumentFactory


  • public class RepositoryDocumentFactory
    extends java.lang.Object
    This class accepts a RepositoryDocument in its constructor, and then allows multiple copies to me made, as part of a split in the pipeline. It must be closed in order to release all temporary resources.
    • Constructor Detail

      • RepositoryDocumentFactory

        public RepositoryDocumentFactory​(RepositoryDocument document)
                                  throws ManifoldCFException,
                                         java.io.IOException
        Constructor. Pass a RepositoryDocument. This constructor reads all streams and stores them in a temporary local location. If there is an error reading the streams, an IOException will be thrown. Otherwise, a ManifoldCFException will be thrown instead.
        Parameters:
        document - is the repository document to read.
        Throws:
        ManifoldCFException
        java.io.IOException
    • Method Detail

      • createDocument

        public RepositoryDocument createDocument()
                                          throws ManifoldCFException
        Create a new RepositoryDocument object from the saved local resources. As a side effect, this method also releases any resources held on behalf of the previously created RepositoryDocument.
        Returns:
        a repository document object.
        Throws:
        ManifoldCFException