Class UnbufferedWriter

java.lang.Object
java.io.Writer
java.io.FilterWriter
de.siegmar.fastcsv.writer.UnbufferedWriter
All Implemented Interfaces:
Writable, Closeable, Flushable, Appendable, AutoCloseable

final class UnbufferedWriter extends 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 Details

    • autoFlushWriter

      private final boolean autoFlushWriter
  • Constructor Details

    • UnbufferedWriter

      UnbufferedWriter(Writer out, boolean autoFlushWriter)
  • Method Details

    • endRecord

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