public class ChunkAdapter extends Object implements ScreenContext
| Modifier and Type | Field and Description |
|---|---|
private LinkedList<Object> |
buffer
.
|
private RenderAppendable |
out
.
|
private Renderable |
renderable
.
|
| Constructor and Description |
|---|
ChunkAdapter(ScreenContext out) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
Class<Object> |
getConsumedType() |
int |
getHeight()
Returns the screen height in chars.
|
int |
getWidth()
Returns the screen width in chars.
|
void |
provide(Object element) |
void |
send() |
void |
write(Chunk chunk)
Write a chunk to the screen.
|
private final LinkedList<Object> buffer
private Renderable renderable
private final RenderAppendable out
public ChunkAdapter(ScreenContext out)
public int getWidth()
ScreenContextgetWidth in interface ScreenContextpublic int getHeight()
ScreenContextgetHeight in interface ScreenContextpublic Class<Object> getConsumedType()
public void write(Chunk chunk) throws IOException
ScreenContextwrite in interface ScreenContextchunk - the chunkIOException - any io exceptionpublic void provide(Object element) throws IOException
IOExceptionpublic void flush() throws IOException
flush in interface FlushableIOExceptionpublic void send() throws IOException
IOExceptionCopyright © 2013 eXo Platform SAS. All Rights Reserved.