|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
|
void |
format(Format format,
Appendable appendable)
|
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)
|
| 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>
public void format(Format format,
Appendable appendable)
throws IOException
IOException
public ChunkBuffer append(Iterable<?> data)
throws NullPointerException
NullPointerException
public ChunkBuffer append(Object... data)
throws NullPointerException
NullPointerExceptionpublic ChunkBuffer cls()
public ChunkBuffer append(Style style)
throws NullPointerException
NullPointerExceptionpublic 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 FlushableIOException
public ChunkBuffer append(ChunkBuffer s)
throws NullPointerException
NullPointerException
public void write(Chunk chunk)
throws NullPointerException
NullPointerException
public ChunkBuffer append(Object o)
throws NullPointerException
NullPointerExceptionpublic boolean contains(Object o)
public boolean isEmpty()
public void clear()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||