public class RenderWriter extends Writer implements ScreenContext
| Modifier and Type | Field and Description |
|---|---|
private Closeable |
closeable
.
|
private boolean |
closed
.
|
private boolean |
empty
.
|
private ScreenContext |
out
.
|
| Constructor and Description |
|---|
RenderWriter(ScreenContext out) |
RenderWriter(ScreenContext out,
Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
Class<Chunk> |
getConsumedType() |
int |
getHeight()
Returns the screen height in chars.
|
int |
getWidth()
Returns the screen width in chars.
|
boolean |
isEmpty() |
void |
provide(Chunk element) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(Chunk chunk)
Write a chunk to the screen.
|
private final ScreenContext out
private boolean closed
private boolean empty
public RenderWriter(ScreenContext out) throws NullPointerException
NullPointerExceptionpublic RenderWriter(ScreenContext out, Closeable closeable) throws NullPointerException
NullPointerExceptionpublic boolean isEmpty()
public int getWidth()
ScreenContextgetWidth in interface ScreenContextpublic int getHeight()
ScreenContextgetHeight in interface ScreenContextpublic Class<Chunk> getConsumedType()
public void write(Chunk chunk) throws IOException
ScreenContextwrite in interface ScreenContextchunk - the chunkIOException - any io exceptionpublic void provide(Chunk element) throws IOException
IOExceptionpublic void write(char[] cbuf, int off, int len) throws IOException
write in class WriterIOExceptionpublic void flush() throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.