public RenderPrintWriter(ScreenContext out) { super(new RenderWriter(out)); // this.out = (RenderWriter)super.out; }
public final boolean isEmpty() { return out.isEmpty(); }
public final void print(Object obj, Style style) { try { out.append(style); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.append(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public final RenderPrintWriter cls() { try { out.cls(); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } return this; }
@Override public void write(char[] cbuf, int off, int len) throws IOException { if (closed) { throw new IOException("Already closed"); } if (len > 0) { Text text = new Text(); text.buffer.append(cbuf, off, len); provide(text); } }
public final RenderPrintWriter cls() { try { out.cls(); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } return this; }
public final RenderPrintWriter cls() { try { out.provide(CLS.INSTANCE); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } return this; }
public RenderPrintWriter(ScreenContext out, Closeable closeable) { super(new RenderWriter(out, closeable)); // this.out = (RenderWriter)super.out; }
public final void print(Object obj, Color foreground, Color background) { try { out.append(Style.style(foreground, background)); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.append(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public final boolean isEmpty() { return out.isEmpty(); }
public final RenderPrintWriter cls() { try { out.cls(); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } return this; }
public final void print(Object obj, Style style) { try { out.provide(style); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.provide(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public RenderPrintWriter(ScreenContext out, Closeable closeable) { super(new RenderWriter(out, closeable)); // this.out = (RenderWriter)super.out; }
public final void print(Object obj, Decoration decoration) { try { out.append(Style.style(decoration)); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.append(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public final boolean isEmpty() { return out.isEmpty(); }
public final void print(Object obj, Color foreground) { try { out.provide(Style.style(foreground)); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.provide(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public RenderPrintWriter(ScreenContext out) { super(new RenderWriter(out)); // this.out = (RenderWriter)super.out; }
public final void print(Object obj, Color foreground) { try { out.append(Style.style(foreground)); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.append(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }
public final boolean isEmpty() { return out.isEmpty(); }
public final void print(Object obj, Color foreground, Color background) { try { out.provide(Style.style(foreground, background)); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } print(obj); try { out.provide(Style.reset); } catch (InterruptedIOException x) { Thread.currentThread().interrupt(); } catch (IOException x) { setError(); } }