|
||||||||||
| 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 RenderingContext |
out
. |
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
RenderWriter(RenderingContext out)
|
|
RenderWriter(RenderingContext out,
Closeable closeable)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
int |
getWidth()
Return the width. |
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 RenderingContext out
private final Closeable closeable
private boolean closed
private boolean empty
| Constructor Detail |
|---|
public RenderWriter(RenderingContext out)
throws NullPointerException
NullPointerException
public RenderWriter(RenderingContext out,
Closeable closeable)
throws NullPointerException
NullPointerException| Method Detail |
|---|
public boolean isEmpty()
public int getWidth()
RenderingContext
getWidth in interface RenderingContext
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 | |||||||||