|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.text.ScreenContextConsumer
public class ScreenContextConsumer
A Consumer<Object>
that renders the object stream to a ScreenContext
.
Field Summary | |
---|---|
private LinkedList<Object> |
buffer
Buffers objects of the same kind. |
private RenderAppendable |
out
. |
private Renderer |
renderable
. |
Constructor Summary | |
---|---|
ScreenContextConsumer(ScreenContext out)
|
Method Summary | |
---|---|
void |
flush()
Flush the stream. |
Class<Object> |
getConsumedType()
Returns the class of the element generic type. |
void |
provide(Object element)
Provide an element. |
void |
send()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final LinkedList<Object> buffer
private Renderer renderable
private final RenderAppendable out
Constructor Detail |
---|
public ScreenContextConsumer(ScreenContext out)
Method Detail |
---|
public Class<Object> getConsumedType()
Consumer
getConsumedType
in interface Consumer<Object>
public void provide(Object element) throws IOException
Consumer
provide
in interface Consumer<Object>
element
- the provided element
IOException
public void flush() throws IOException
Consumer
flush
in interface Consumer<Object>
IOException
- any io exceptionpublic void send() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |