@Override public Screenable append(Style style) throws IOException { buffer.append(style); return this; }
@Override public Screenable append(CharSequence csq, int start, int end) throws IOException { buffer.append(csq, start, end); return this; }
public ScreenBuffer append(Object... data) throws NullPointerException { for (Object o : data) { append(o); } return this; }
public ScreenBuffer append(Iterable<?> data) throws NullPointerException { for (Object o : data) { append(o); } return this; }
@Override public Screenable append(CharSequence s) throws IOException { buffer.append(s); return this; }
@Override public Appendable append(char c) throws IOException { buffer.append(c); return this; }
@Override public ScreenBuffer append(char c) throws IOException { return append(Character.toString(c)); }
public ScreenBuffer append(CharSequence s, int start, int end) { if (end != start) { if (start != 0 || end != s.length()) { s = s.subSequence(start, end); } append(s); } return this; }
@Override public Screenable append(char c) throws IOException { adapter.send(); buffer.append(c); return this; }
public Screenable append(CharSequence s) throws IOException { buffer.append(s); return this; } public Appendable append(char c) throws IOException {
public Appendable append(CharSequence csq, int start, int end) throws IOException { buffer.append(csq, start, end); return this; } public Screenable append(Style style) throws IOException {
public Screenable append(Style style) throws IOException { buffer.append(style); return this; } public Screenable cls() throws IOException {
public Appendable append(char c) throws IOException { buffer.append(c); return this; } public Appendable append(CharSequence csq, int start, int end) throws IOException {
@Override public Screenable append(CharSequence csq, int start, int end) throws IOException { if (start < end) { adapter.send(); buffer.append(csq, start, end); } return this; }
public Screenable append(Style style) throws IOException { if (reader == null) { reader = new ScreenBuffer(); } reader.append(style); return this; }
public Screenable append(CharSequence s) throws IOException { if (reader == null) { reader = new ScreenBuffer(); } reader.append(s); return this; }
public Screenable append(CharSequence csq, int start, int end) throws IOException { if (reader == null) { reader = new ScreenBuffer(); } reader.append(csq, start, end); return this; }
public Screenable append(char c) throws IOException { if (reader == null) { reader = new ScreenBuffer(); } reader.append(c); return this; }
public void testAdaptToChunk() { lifeCycle.bindClass("producer", Commands.ProduceValue.class); lifeCycle.bindClass("consumer", Commands.ConsumeChunk.class); Commands.list.clear(); assertOk("producer | consumer"); ScreenBuffer buffer = new ScreenBuffer().append(Commands.list); assertEquals("<value>abc</value> \n", buffer.toString()); }