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) voidformatFile(@NonNull T value, @NonNull File target, @NonNull Charset encoding) voidformatPath(@NonNull T value, @NonNull Path target, @NonNull Charset encoding) voidformatStream(@NonNull T value, @NonNull OutputStream resource, @NonNull Charset encoding) voidformatWriter(@NonNull 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
compose, formatChars, formatStream, formatToString, formatWriter, withCharset
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
builder
public static <T> @NonNull Picocsv.Formatter.Builder<T> builder(@NonNull Picocsv.OutputHandler<T> handler) -
formatFile
public void formatFile(@NonNull T value, @NonNull File target, @NonNull Charset encoding) throws IOException - Specified by:
formatFilein interfaceTextFormatter<T>- Throws:
IOException
-
formatPath
public void formatPath(@NonNull T value, @NonNull Path target, @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 OutputStream resource, @NonNull Charset encoding) throws IOException - Specified by:
formatStreamin interfaceTextFormatter<T>- Throws:
IOException
-