Class UnbufferedWriter

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

    final class UnbufferedWriter
    extends java.io.FilterWriter
    implements Writable
    Implementation of Writable that does not buffer any data but flushes the underlying writer at the end of each record if configured.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean autoFlushWriter  
      • Fields inherited from class java.io.FilterWriter

        out
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      UnbufferedWriter​(java.io.Writer out, boolean autoFlushWriter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endRecord()
      Called to indicate that the current record is complete.
      • Methods inherited from class java.io.FilterWriter

        close, flush, write, write, write
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, 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.io.Closeable

        close
      • Methods inherited from interface java.io.Flushable

        flush
    • Field Detail

      • autoFlushWriter

        private final boolean autoFlushWriter
    • Constructor Detail

      • UnbufferedWriter

        UnbufferedWriter​(java.io.Writer out,
                         boolean autoFlushWriter)
    • Method Detail

      • endRecord

        public void endRecord()
                       throws java.io.IOException
        Description copied from interface: Writable
        Called to indicate that the current record is complete.
        Specified by:
        endRecord in interface Writable
        Throws:
        java.io.IOException - if an I/O error occurs