public abstract class ContentSource extends ContentItemsSource
ContentSource is responsible for creating DocData objects for
its documents to be consumed by DocMaker. It also keeps track
of various statistics, such as how many documents were generated, size in
bytes etc.
For supported configuration parameters see ContentItemsSource.
encoding, forever, logStep, verbose| Constructor and Description |
|---|
ContentSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract DocData |
getNextDocData(DocData docData)
Returns the next
DocData from the content source. |
addBytes, addItem, close, collectFiles, getBytesCount, getConfig, getItemsCount, getTotalBytesCount, getTotalItemsCount, printStatistics, resetInputs, setConfig, shouldLogpublic abstract DocData getNextDocData(DocData docData) throws NoMoreDataException, IOException
DocData from the content source.
Implementations must account for multi-threading, as multiple threads
can call this method simultaneously.NoMoreDataExceptionIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.