|
||||||||||
| 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.
| 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 |
| 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 exception
public void send()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||