public class ScreenBuffer extends Object implements Iterable<Object>, Serializable, Screenable
| Modifier and Type | Field and Description |
|---|---|
private LinkedList<Object> |
chunks
.
|
private Style |
current
.
|
private Style |
next
.
|
private ScreenContext |
out
Where we flush.
|
| Constructor and Description |
|---|
ScreenBuffer() |
ScreenBuffer(ScreenContext out) |
| Modifier and Type | Method and Description |
|---|---|
ScreenBuffer |
append(char c) |
ScreenBuffer |
append(CharSequence s) |
ScreenBuffer |
append(CharSequence s,
int start,
int end) |
ScreenBuffer |
append(Iterable<?> data) |
ScreenBuffer |
append(Object... data) |
ScreenBuffer |
append(Object o) |
ScreenBuffer |
append(ScreenBuffer s) |
ScreenBuffer |
append(Style style) |
void |
clear() |
ScreenBuffer |
cls() |
boolean |
contains(Object o) |
boolean |
equals(Object obj) |
void |
flush() |
void |
format(Format format,
Appendable appendable) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
String |
toString() |
private final LinkedList<Object> chunks
private final ScreenContext out
public ScreenBuffer()
public ScreenBuffer(ScreenContext out)
public void format(Format format, Appendable appendable) throws IOException
IOExceptionpublic ScreenBuffer append(Iterable<?> data) throws NullPointerException
NullPointerExceptionpublic ScreenBuffer append(Object... data) throws NullPointerException
NullPointerExceptionpublic ScreenBuffer cls()
cls in interface Screenablepublic ScreenBuffer append(Style style) throws NullPointerException
append in interface ScreenableNullPointerExceptionpublic ScreenBuffer append(char c) throws IOException
append in interface AppendableIOExceptionpublic ScreenBuffer append(CharSequence s)
append in interface Appendablepublic ScreenBuffer append(CharSequence s, int start, int end)
append in interface Appendablepublic void flush() throws IOException
IOExceptionpublic ScreenBuffer append(ScreenBuffer s) throws NullPointerException
NullPointerExceptionpublic ScreenBuffer append(Object o) throws NullPointerException
NullPointerExceptionpublic boolean isEmpty()
public void clear()
Copyright © 2015 eXo Platform SAS. All Rights Reserved.