org.crsh.text
Class RenderWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.crsh.text.RenderWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, Screenable

public class RenderWriter
extends Writer
implements Screenable


Field Summary
private  Closeable closeable
          .
private  boolean closed
          .
private  boolean empty
          .
(package private)  ScreenContext out
          .
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
RenderWriter(ScreenContext out)
           
RenderWriter(ScreenContext out, Closeable closeable)
           
 
Method Summary
 RenderWriter append(CharSequence s)
           
 Screenable append(Style style)
           
 void close()
           
 Screenable cls()
           
 void flush()
           
 boolean isEmpty()
           
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Appendable
append, append
 

Field Detail

out

final ScreenContext out
.


closeable

private final Closeable closeable
.


closed

private boolean closed
.


empty

private boolean empty
.

Constructor Detail

RenderWriter

public RenderWriter(ScreenContext out)
             throws NullPointerException
Throws:
NullPointerException

RenderWriter

public RenderWriter(ScreenContext out,
                    Closeable closeable)
             throws NullPointerException
Throws:
NullPointerException
Method Detail

isEmpty

public boolean isEmpty()

append

public RenderWriter append(CharSequence s)
                    throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public Screenable append(Style style)
                  throws IOException
Specified by:
append in interface Screenable
Throws:
IOException

cls

public Screenable cls()
               throws IOException
Specified by:
cls in interface Screenable
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.