public class ScreenContextConsumer extends Object implements Consumer<Object>
Consumer<Object> that renders the object stream to a ScreenContext.| Modifier and Type | Field and Description |
|---|---|
private LinkedList<Object> |
buffer
Buffers objects of the same kind.
|
private RenderAppendable |
out
.
|
private Renderer |
renderable
.
|
| Constructor and Description |
|---|
ScreenContextConsumer(ScreenContext out) |
private final LinkedList<Object> buffer
private Renderer renderable
private final RenderAppendable out
public ScreenContextConsumer(ScreenContext out)
public Class<Object> getConsumedType()
ConsumergetConsumedType in interface Consumer<Object>public void provide(Object element) throws IOException
Consumerprovide in interface Consumer<Object>element - the provided elementIOExceptionpublic void flush() throws IOException
Consumerflush in interface Consumer<Object>IOException - any io exceptionpublic void send() throws IOException
IOExceptionCopyright © 2015 eXo Platform SAS. All Rights Reserved.