public abstract class AbstractFileBasedDocumentFactory extends Object implements FileBasedDocumentFactory
FileBasedDocumentFactory which creates
the Document instance, adds the file name as document name and calls
the internal abstract method addFileContent(File, Document) to read
the content of the file.| Constructor and Description |
|---|
AbstractFileBasedDocumentFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addFileContent(File file,
org.dice_research.topicmodeling.utils.doc.Document document)
Adds the content of the given file to the given document.
|
org.dice_research.topicmodeling.utils.doc.Document |
createDocument(File file,
int documentId)
Creates a
Document instance from the given file and assigns the given
document ID. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDocumentpublic org.dice_research.topicmodeling.utils.doc.Document createDocument(File file, int documentId)
FileBasedDocumentFactoryDocument instance from the given file and assigns the given
document ID.createDocument in interface FileBasedDocumentFactoryfile - the file that should be used to create the Document
instancedocumentId - the ID the newly created instance should haveDocument instance from the given fileprotected abstract void addFileContent(File file, org.dice_research.topicmodeling.utils.doc.Document document)
file - the file the newly created document is based ondocument - the document to which the file content should be addedCopyright © 2015–2020. All rights reserved.