idl.tmt.documentsource
Interface DocumentProvider
- All Known Subinterfaces:
- FilesystemDocumentProvider
- public interface DocumentProvider
This interface defines an entry point into a source of documents. These
sources could be the Web or a file system. Right now, documents
provided by classes implementing this interface must be able to be
referenced by a URL, but in the future, a more flexible scheme may
be implemented which could include XPath queries or SQL queries.
Created on Jan 23, 2004
- Author:
- jelsas
|
Method Summary |
java.io.File |
getNextDocument()
Returns a URL of the next available document. |
boolean |
hasMoreDocuments()
Indicates whether more documents could be retrieved using this
provider. |
getNextDocument
public java.io.File getNextDocument()
- Returns a URL of the next available document.
- Returns:
- the document's URL
hasMoreDocuments
public boolean hasMoreDocuments()
- Indicates whether more documents could be retrieved using this
provider.
- Returns:
- true if there are more documents, false otherwise.