|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.processing.DefaultConsumer
org.jcreme.processing.ParseConsumer
This consumer is designed to consume String objects. It may be used to feed a ParseProducer. Empty strings and nulls are skipped to ensure that only potentially productive Strings are accessible to the producer.
Constructor Summary | |
ParseConsumer(Producer provider)
Creates a new instance of ParseConsumer |
Method Summary | |
java.lang.Object |
consumeItem()
Consumes a new item. |
Methods inherited from class org.jcreme.processing.DefaultConsumer |
getProvider, setProvider, validateItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParseConsumer(Producer provider) throws java.lang.IllegalArgumentException
provider
- the producer from which this consumer gets Strings.
java.lang.IllegalArgumentException
- if the provider parameter is null.Method Detail |
public java.lang.Object consumeItem()
consumeItem
in interface Consumer
consumeItem
in class DefaultConsumer
Consumer.consumeItem()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |