org.crsh.text
Class ChunkAdapter

java.lang.Object
  extended by org.crsh.text.ChunkAdapter
All Implemented Interfaces:
Flushable, Pipe<Object>

public class ChunkAdapter
extends Object
implements Pipe<Object>


Field Summary
private  LinkedList<Object> buffer
          .
private  RenderAppendable out
          .
private  Renderable renderable
          .
 
Constructor Summary
ChunkAdapter(RenderingContext out)
           
 
Method Summary
 void flush()
           
 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

buffer

private final LinkedList<Object> buffer
.


renderable

private Renderable renderable
.


out

private final RenderAppendable out
.

Constructor Detail

ChunkAdapter

public ChunkAdapter(RenderingContext out)
Method Detail

provide

public void provide(Object element)
             throws IOException
Description copied from interface: Pipe
Provide an element.

Specified by:
provide in interface Pipe<Object>
Parameters:
element - the provided element
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Throws:
IOException

send

public void send()
          throws IOException
Throws:
IOException


Copyright © 2012 eXo Platform SAS. All Rights Reserved.