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