|
||||||||||
| 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 IOContext |
out
. |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
RenderWriter(IOContext out)
|
|
RenderWriter(IOContext out,
Closeable closeable)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
int |
getHeight()
Returns the term height in chars. |
int |
getWidth()
Returns the term 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 IOContext out
private final Closeable closeable
private boolean closed
private boolean empty
| Constructor Detail |
|---|
public RenderWriter(IOContext out)
throws NullPointerException
NullPointerException
public RenderWriter(IOContext out,
Closeable closeable)
throws NullPointerException
NullPointerException| Method Detail |
|---|
public boolean isEmpty()
public int getWidth()
IOContext
getWidth in interface IOContext<Chunk>public int getHeight()
IOContext
getHeight in interface IOContext<Chunk>
public void provide(Chunk element)
throws IOException
Pipe
provide in interface Pipe<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 | |||||||||