public class FileWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static FileWriter |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
writeToFile(Path path,
byte[] content,
String contentType)
Write byte array content to the given path.
|
public static final FileWriter INSTANCE
public void writeToFile(Path path, byte[] content, String contentType) throws IOException
path - path where the content should be written.content - content to be written to the path.contentType - type of the content.UnknownContentTypeException - when the content type is unknown.IOExceptionCopyright © 2022–2023 Rodnan Sol. All rights reserved.