Package nbbrd.io
Interface FileFormatter<T>
-
public interface FileFormatter<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> @NonNull FileFormatter<V>compose(@NonNull Function<? super V,? extends T> before)default voidformatFile(@NonNull T value, @NonNull File target)default voidformatPath(@NonNull T value, @NonNull Path target)voidformatStream(@NonNull T value, @NonNull OutputStream resource)default voidformatStream(@NonNull T value, IOSupplier<? extends OutputStream> target)
-
-
-
Method Detail
-
formatFile
default void formatFile(@NonNull T value, @NonNull File target) throws IOException
- Throws:
IOException
-
formatPath
default void formatPath(@NonNull T value, @NonNull Path target) throws IOException
- Throws:
IOException
-
formatStream
default void formatStream(@NonNull T value, IOSupplier<? extends OutputStream> target) throws IOException
- Throws:
IOException
-
formatStream
void formatStream(@NonNull T value, @NonNull OutputStream resource) throws IOException
- Throws:
IOException
-
compose
default <V> @NonNull FileFormatter<V> compose(@NonNull Function<? super V,? extends T> before)
-
-