public class RenderWriter extends java.io.Writer implements ScreenContext
| Constructor and Description |
|---|
RenderWriter(ScreenContext out) |
RenderWriter(ScreenContext out,
java.io.Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
java.lang.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.
|
public RenderWriter(ScreenContext out) throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic RenderWriter(ScreenContext out, java.io.Closeable closeable) throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic boolean isEmpty()
public int getWidth()
ScreenContextgetWidth in interface ScreenContextpublic int getHeight()
ScreenContextgetHeight in interface ScreenContextpublic java.lang.Class<Chunk> getConsumedType()
public void write(Chunk chunk) throws java.io.IOException
ScreenContextwrite in interface ScreenContextchunk - the chunkjava.io.IOException - any io exceptionpublic void provide(Chunk element) throws java.io.IOException
java.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.