org.crsh.text
Class ChunkAdapter

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

public class ChunkAdapter
extends Object
implements IOContext<Object>


Field Summary
private  LinkedList<Object> buffer
          .
private  RenderAppendable out
          .
private  Renderable renderable
          .
 
Constructor Summary
ChunkAdapter(IOContext<Chunk> out)
           
 
Method Summary
 void flush()
           
 int getHeight()
          Returns the term height in chars.
 int getWidth()
          Returns the term width in chars.
 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(IOContext<Chunk> out)
Method Detail

getWidth

public int getWidth()
Description copied from interface: IOContext
Returns the term width in chars. When the value is not positive it means the value could not be determined.

Specified by:
getWidth in interface IOContext<Object>
Returns:
the term width

getHeight

public int getHeight()
Description copied from interface: IOContext
Returns the term height in chars. When the value is not positive it means the value could not be determined.

Specified by:
getHeight in interface IOContext<Object>
Returns:
the term height

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.