Package nbbrd.io.picocsv
Class Picocsv.Formatter<T>
java.lang.Object
nbbrd.io.picocsv.Picocsv.Formatter<T>
- All Implemented Interfaces:
TextFormatter<T>
- Enclosing class:
- Picocsv
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NonNull Picocsv.Formatter.Builder<T>builder(@NonNull Picocsv.OutputHandler<T> handler) voidvoidformatCsv(T value, IOSupplier<@NonNull nbbrd.picocsv.Csv.Writer> source) voidformatFile(T value, @NonNull File target, @NonNull Charset encoding) voidformatPath(T value, @NonNull Path target, @NonNull Charset encoding) voidformatStream(T value, @NonNull OutputStream resource, @NonNull Charset encoding) voidformatWriter(T value, @NonNull Writer resource) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nbbrd.io.text.TextFormatter
asFileFormatter, asFormatter, asFormatter, compose, formatChars, formatStream, formatToString, formatWriter
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
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:
formatFilein interfaceTextFormatter<T>- Throws:
IOException
-
formatPath
public void formatPath(@NonNull T value, @NonNull @NonNull Path target, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
formatPathin interfaceTextFormatter<T>- Throws:
IOException
-
formatWriter
- Specified by:
formatWriterin interfaceTextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
formatStreamin interfaceTextFormatter<T>- Throws:
IOException
-
formatCsv
public void formatCsv(@NonNull T value, 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
-