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
IOException
public ScreenBuffer append(Iterable<?> data) throws NullPointerException
NullPointerException
public ScreenBuffer append(Object... data) throws NullPointerException
NullPointerException
public ScreenBuffer cls()
cls
in interface Screenable
public ScreenBuffer append(Style style) throws NullPointerException
append
in interface Screenable
NullPointerException
public ScreenBuffer append(char c) throws IOException
append
in interface Appendable
IOException
public ScreenBuffer append(CharSequence s)
append
in interface Appendable
public ScreenBuffer append(CharSequence s, int start, int end)
append
in interface Appendable
public void flush() throws IOException
IOException
public ScreenBuffer append(ScreenBuffer s) throws NullPointerException
NullPointerException
public ScreenBuffer append(Object o) throws NullPointerException
NullPointerException
public boolean isEmpty()
public void clear()
Copyright © 2015 eXo Platform SAS. All Rights Reserved.