org.apache.manifoldcf.crawler.connectors.filesystem
Class FileConnector.IdentifierStream

java.lang.Object
  extended by org.apache.manifoldcf.crawler.connectors.filesystem.FileConnector.IdentifierStream
All Implemented Interfaces:
org.apache.manifoldcf.crawler.interfaces.IDocumentIdentifierStream
Enclosing class:
FileConnector

protected static class FileConnector.IdentifierStream
extends java.lang.Object
implements org.apache.manifoldcf.crawler.interfaces.IDocumentIdentifierStream

Document identifier stream.


Field Summary
protected  int currentIndex
           
protected  java.lang.String[] ids
           
 
Fields inherited from interface org.apache.manifoldcf.crawler.interfaces.IDocumentIdentifierStream
_rcsid
 
Constructor Summary
FileConnector.IdentifierStream(org.apache.manifoldcf.crawler.interfaces.DocumentSpecification spec)
           
 
Method Summary
 void close()
          Close the stream.
 java.lang.String getNextIdentifier()
          Get the next identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ids

protected java.lang.String[] ids

currentIndex

protected int currentIndex
Constructor Detail

FileConnector.IdentifierStream

public FileConnector.IdentifierStream(org.apache.manifoldcf.crawler.interfaces.DocumentSpecification spec)
                               throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
Method Detail

getNextIdentifier

public java.lang.String getNextIdentifier()
                                   throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                          org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Get the next identifier.

Specified by:
getNextIdentifier in interface org.apache.manifoldcf.crawler.interfaces.IDocumentIdentifierStream
Returns:
the next document identifier, or null if there are no more.
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption

close

public void close()
           throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Close the stream.

Specified by:
close in interface org.apache.manifoldcf.crawler.interfaces.IDocumentIdentifierStream
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException