public class ConvertingPipe<C,P,CONS extends CommandContext<? super P>> extends AbstractPipe<C,P,CONS>
consumer, piped| Constructor and Description |
|---|
ConvertingPipe(java.lang.Class<C> consumedType,
java.lang.Class<P> producedType,
boolean piped) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<C> |
getConsumedType()
Returns the class of the element generic type.
|
java.lang.Class<P> |
getProducedType()
Returns the class of the produced type.
|
void |
provide(C element)
Provide an element.
|
void |
write(Chunk chunk)
Write a chunk to the screen.
|
close, flush, getAttributes, getHeight, getProperty, getSession, getWidth, isPiped, open, readLine, releaseAlternateBuffer, takeAlternateBufferpublic java.lang.Class<C> getConsumedType()
Consumerpublic java.lang.Class<P> getProducedType()
Producerpublic void write(Chunk chunk) throws java.io.IOException
ScreenContextchunk - the chunkjava.io.IOException - any io exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.