public interface TransformerBinaryStorage
| Modifier and Type | Method and Description |
|---|---|
void |
createDirectories(Path... directories)
Create directories on file system.
|
Function<File,byte[]> |
fileReader()
Constructs reader function that reads content from a file as array of bytes.
|
BiConsumer<File,byte[]> |
fileWriter()
Constructs writer function that writes array of bytes to a file.
|
BiConsumer<Writer,File> |
flushWriter()
Flushes writer to the file.
|
BiFunction<File,String,Writer> |
getWriter()
Constructs a function that returns writer for a given
outputFile
possibly using charsetName when non-null. |
Function<File,byte[]> fileReader()
File and returns byte[] array.BiConsumer<File,byte[]> fileWriter()
File as a destination parameter
and byte[] array that should be written to the destination.BiFunction<File,String,Writer> getWriter()
outputFile
possibly using charsetName when non-null.Lambda arguments:
File were the writer should writes to;String encoding. When non-null used when writing to the output file;Writer an initialized writer.BiConsumer<Writer,File> flushWriter()
Writer with content
and target File.void createDirectories(Path... directories) throws IOException
directories - paths to create.IOException - creating is failed.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries