|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.text.ChunkAdapter
public class ChunkAdapter
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 | |
|---|---|
ChunkAdapter(ScreenContext out)
|
|
| Method Summary | |
|---|---|
void |
flush()
|
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 ChunkAdapter(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
flush in interface FlushableIOException
public void send()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||