|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.processing.AbstractProducer
org.jcreme.processing.FileReaderProducer
This producer reads lines from a file. The produced Objects are Strings that represent the lines of the file.
Constructor Summary | |
FileReaderProducer(java.io.File file,
int initialProductionQueueSize,
int initialValidationQueueSize)
Creates new FileReaderProducer |
Method Summary | |
boolean |
produceItem()
Produces next item, i.e. marks it as consumable. |
Methods inherited from class org.jcreme.processing.AbstractProducer |
getItemsBeingConsumed, getProducedItems, isProductionOver, nextItem, nextItem, publishItem, setProductionOver, validateItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileReaderProducer(java.io.File file, int initialProductionQueueSize, int initialValidationQueueSize) throws java.lang.IllegalArgumentException
file
- The file to read from.initialProductionQueueSize
- the size of the production queue when it is initialized.initialValidationQueueSize
- the size of the validation queue when it is initialized.
java.lang.IllegalArgumentException
- if a problem occurs accessing the file.Method Detail |
public boolean produceItem()
produceItem
in interface Producer
produceItem
in class AbstractProducer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |