Class Picocsv.Formatter<T>

java.lang.Object
nbbrd.io.picocsv.Picocsv.Formatter<T>
All Implemented Interfaces:
nbbrd.io.text.TextFormatter<T>
Enclosing class:
Picocsv

public static final class Picocsv.Formatter<T> extends Object implements nbbrd.io.text.TextFormatter<T>
  • Constructor Details

    • Formatter

      public Formatter()
  • Method Details

    • of

      @StaticFactoryMethod @NonNull public static <T> @NonNull Picocsv.Formatter<T> of(@NonNull @NonNull Picocsv.OutputHandler<T> handler)
    • builder

      @NonNull public static <T> @NonNull Picocsv.Formatter.Builder<T> builder(@NonNull @NonNull Picocsv.OutputHandler<T> handler)
    • formatFile

      public void formatFile(@NonNull T value, @NonNull @NonNull File target, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      formatFile in interface nbbrd.io.text.TextFormatter<T>
      Throws:
      IOException
    • formatPath

      public void formatPath(@NonNull T value, @NonNull @NonNull Path target, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      formatPath in interface nbbrd.io.text.TextFormatter<T>
      Throws:
      IOException
    • formatWriter

      public void formatWriter(@NonNull T value, @NonNull @NonNull Writer resource) throws IOException
      Specified by:
      formatWriter in interface nbbrd.io.text.TextFormatter<T>
      Throws:
      IOException
    • formatStream

      public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource, @NonNull @NonNull Charset encoding) throws IOException
      Specified by:
      formatStream in interface nbbrd.io.text.TextFormatter<T>
      Throws:
      IOException
    • formatCsv

      public void formatCsv(@NonNull T value, nbbrd.io.function.IOSupplier<@NonNull nbbrd.picocsv.Csv.Writer> source) throws IOException
      Throws:
      IOException
    • formatCsv

      public void formatCsv(@NonNull T value, @NonNull nbbrd.picocsv.Csv.Writer resource) throws IOException
      Throws:
      IOException