|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.text.ChunkBuffer
public class ChunkBuffer
Field Summary | |
---|---|
private LinkedList<Chunk> |
chunks
. |
private Style |
current
. |
private Style |
next
. |
private Consumer<Chunk> |
out
Where we flush. |
Constructor Summary | |
---|---|
ChunkBuffer()
|
|
ChunkBuffer(Consumer<Chunk> out)
|
Method Summary | |
---|---|
ChunkBuffer |
append(char c)
|
ChunkBuffer |
append(CharSequence s)
|
ChunkBuffer |
append(CharSequence s,
int start,
int end)
|
ChunkBuffer |
append(ChunkBuffer s)
|
ChunkBuffer |
append(Iterable<?> data)
|
ChunkBuffer |
append(Object... data)
|
ChunkBuffer |
append(Object o)
|
ChunkBuffer |
append(Style style)
|
void |
clear()
|
ChunkBuffer |
cls()
|
boolean |
contains(Object o)
|
boolean |
equals(Object obj)
|
void |
flush()
|
Class<Chunk> |
getConsumedType()
Returns the class of the element generic type. |
int |
hashCode()
|
boolean |
isEmpty()
|
Iterator<Chunk> |
iterator()
|
private Text |
last()
|
void |
provide(Chunk element)
Provide an element. |
String |
toString()
|
void |
write(Chunk chunk)
|
void |
writeAnsiTo(Appendable appendable)
Deprecated. |
void |
writeTo(Consumer<Chunk> writer)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final LinkedList<Chunk> chunks
private Style current
private Style next
private final Consumer<Chunk> out
Constructor Detail |
---|
public ChunkBuffer()
public ChunkBuffer(Consumer<Chunk> out)
Method Detail |
---|
public Iterator<Chunk> iterator()
iterator
in interface Iterable<Chunk>
@Deprecated public void writeAnsiTo(Appendable appendable) throws IOException
IOException
public ChunkBuffer append(Iterable<?> data) throws NullPointerException
NullPointerException
public ChunkBuffer append(Object... data) throws NullPointerException
NullPointerException
public ChunkBuffer cls()
public ChunkBuffer append(Style style) throws NullPointerException
NullPointerException
public ChunkBuffer append(char c)
public ChunkBuffer append(CharSequence s)
public ChunkBuffer append(CharSequence s, int start, int end)
private Text last()
public Class<Chunk> getConsumedType()
Consumer
getConsumedType
in interface Consumer<Chunk>
public void provide(Chunk element) throws IOException
Consumer
provide
in interface Consumer<Chunk>
element
- the provided element
IOException
public void flush() throws IOException
flush
in interface Flushable
IOException
public ChunkBuffer append(ChunkBuffer s) throws NullPointerException
NullPointerException
public void write(Chunk chunk) throws NullPointerException
NullPointerException
public ChunkBuffer append(Object o) throws NullPointerException
NullPointerException
public boolean contains(Object o)
public boolean isEmpty()
public void clear()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public void writeTo(Consumer<Chunk> writer) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |