|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines a processing pipe.
Note that it extends the Processor
interface,
so it can be used exactly like a processor.
Processor
Method Summary | |
void |
addProcessor(int pos,
Processor proc)
Adds a processor to this processing pipe, at a given position. |
void |
addProcessor(Processor proc)
Adds a processor to this processing pipe. |
void |
flush()
Removes all processors from this processing pipe. |
boolean |
isEmpty()
Tests if the pipe is empty. |
void |
removeProcessor(int pos)
Removes the processor at the given position from this processing pipe. |
int |
size()
Returns the count of all processors in this pipe. |
Methods inherited from interface net.wimpi.text.Processor |
getDescription, getDescription, getName, listAvailableLocales, process, process, setDefaultLocale, setDescription |
Method Detail |
public void addProcessor(Processor proc)
proc
- the Processor
instance to be
added to this processing pipe.Processor
public void addProcessor(int pos, Processor proc) throws java.lang.IndexOutOfBoundsException
pos
- the position where the given Processor
instance should be added as int
.proc
- the Processor
instance to be
added to this processing pipe.Processor
public void removeProcessor(int pos) throws java.lang.IndexOutOfBoundsException
pos
- the position of the Processor
to
be removed from this processing pipe.public void flush()
public boolean isEmpty()
public int size()
int
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |