public Screenable append(CharSequence s) throws IOException { if (status != CLOSED) { status = WRITTEN; commandContext.append(s); } return this; }
public void provide(P element) throws Exception { if (status != CLOSED) { status = WRITTEN; commandContext.provide(element); } }
@Override public void provide(Object element) throws Exception { context.provide(element); } };
public final void execute(String s) throws IOException, CommandException { InvocationContext<?> context = peekContext(); CommandInvoker invoker = context.resolve(s); invoker.open(context); invoker.flush(); invoker.close(); } }
/** * Flush pipe. * * @throws IOException any io exception */ public void flush() throws IOException { context.flush(); }
public void flush() throws IOException { if (status == WRITTEN) { status = FLUSHED; commandContext.flush(); } }
/** * Close pipe. * * @throws Exception any exception */ public void close() throws Exception { context.close(); } }
public Map<String, Object> getAttributes() { return outter.getAttributes(); } }
public Screenable append(Style style) throws IOException { outter.append(style); return this; }
public Screenable cls() throws IOException { if (status != CLOSED) { status = WRITTEN; commandContext.cls(); } return this; }
public void open(InvocationContext<P> consumer) throws Exception { this.context = consumer; // open(); }
public Screenable cls() throws IOException { outter.cls(); return this; }
@Override public void provide(String element) throws Exception { context.provide(element); } };
public Screenable append(CharSequence csq, int start, int end) throws IOException { if (status != CLOSED) { status = WRITTEN; commandContext.append(csq, start, end); } return this; }
public Appendable append(CharSequence csq, int start, int end) throws IOException { outter.append(csq, start, end); return this; }
@Override public void close() throws Exception { context.provide(count); } };
public Screenable append(char c) throws IOException { if (status != CLOSED) { status = WRITTEN; commandContext.append(c); } return this; }
public Screenable append(CharSequence s) throws IOException { outter.append(s); return this; }
public Screenable append(Style style) throws IOException { if (status != CLOSED) { status = WRITTEN; commandContext.append(style); } return this; }