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()
Consumer
getConsumedType
in interface Consumer<Object>
public void provide(Object element) throws IOException
Consumer
provide
in interface Consumer<Object>
element
- the provided elementIOException
public void flush() throws IOException
Consumer
flush
in interface Consumer<Object>
IOException
- any io exceptionpublic void send() throws IOException
IOException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.