@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.provide(CLS.INSTANCE); } 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 final void print(Object obj, Decoration decoration) { try { out.provide(Style.style(decoration)); } 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 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 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(); } }