Package nbbrd.io.picocsv
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>
-
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) voidvoidvoidformatFile(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) static <T> @NonNull Picocsv.Formatter<T> of(@NonNull Picocsv.OutputHandler<T> handler) 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
-
of
@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:
formatFilein interfacenbbrd.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:
formatPathin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-
formatWriter
- Specified by:
formatWriterin interfacenbbrd.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:
formatStreamin interfacenbbrd.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
-