Class JavaWriterWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public final class JavaWriterWriter
    extends GenericWriter
    Wraps a simple java.lang.Writer. Of course you loose the possible optimizations.
    Since:
    5.2
    Author:
    baldersheim
    • Field Summary

      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaWriterWriter​(java.io.Writer writer)  
    • Constructor Detail

      • JavaWriterWriter

        public JavaWriterWriter​(java.io.Writer writer)
    • Method Detail

      • write

        public void write​(char[] c,
                          int offset,
                          int bytes)
        Specified by:
        write in class java.io.Writer
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Writer
      • getWriter

        public final java.io.Writer getWriter()