Class LinedTextWriter

Direct Known Subclasses:
CSVWriter, FixedWidthWriter, JsonLinesWriter

public abstract class LinedTextWriter extends TextWriter
Abstract super-class for writing records to a text stream.
  • Constructor Details

    • LinedTextWriter

      public LinedTextWriter(File file, boolean append)
      Parameters:
      file -
      append - Indicates if writing should start at the end of the file (if it exists). If the specified file exists and has contents (more than 0 bytes), then the fieldNamesInFirstRow property will be set to false.
    • LinedTextWriter

      public LinedTextWriter(File file)
      Creates a writer that overwrites the file, which this constructor opens immediately rather than in open().
    • LinedTextWriter

      public LinedTextWriter(Writer writer)
  • Method Details