|
||||||||||
| 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()
Returns the class of the element generic type. |
int |
getHeight()
Returns the screen height in chars. |
int |
getWidth()
Returns the screen width in chars. |
boolean |
isEmpty()
|
void |
provide(Chunk element)
Provide an element. |
void |
write(char[] cbuf,
int off,
int len)
|
| 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 ScreenContext<Chunk>public int getHeight()
ScreenContext
getHeight in interface ScreenContext<Chunk>public Class<Chunk> getConsumedType()
Consumer
getConsumedType in interface Consumer<Chunk>
public void provide(Chunk element)
throws IOException
Consumer
provide in interface Consumer<Chunk>element - the provided element
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 | |||||||||