public class ChunkAdapter 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 |
|---|
ChunkAdapter(ScreenContext out) |
private final LinkedList<Object> buffer
private Renderer renderable
private final RenderAppendable out
public ChunkAdapter(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
flush in interface FlushableIOExceptionpublic void send() throws IOException
IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.