|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
org.crsh.text.RenderWriter
public class RenderWriter
| Field Summary | |
|---|---|
private Closeable |
closeable
. |
private boolean |
closed
. |
private boolean |
empty
. |
private ScreenContext |
out
. |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
RenderWriter(ScreenContext out)
|
|
RenderWriter(ScreenContext out,
Closeable closeable)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final ScreenContext out
private final Closeable closeable
private boolean closed
private boolean empty
| Constructor Detail |
|---|
public RenderWriter(ScreenContext out)
throws NullPointerException
NullPointerException
public RenderWriter(ScreenContext out,
Closeable closeable)
throws NullPointerException
NullPointerException| Method Detail |
|---|
public boolean isEmpty()
public int getWidth()
ScreenContext
getWidth in interface ScreenContextpublic int getHeight()
ScreenContext
getHeight in interface ScreenContextpublic Class<Chunk> getConsumedType()
public void write(Chunk chunk)
throws IOException
ScreenContext
write in interface ScreenContextchunk - the chunk
IOException - any io exception
public void provide(Chunk element)
throws IOException
IOException
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOException
public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException
public void close()
throws IOException
close in interface Closeableclose in class WriterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||