public interface LineWriter extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
removePath()
Remove the current file path.
|
void |
setPath(String path)
Set the file path or null if you want to remove the current file path.
|
ResultData |
writeLines(Supplier<String> lineSupplier)
Write line by line until the line supplier provides a null value.
|
void setPath(String path)
path - The file pathIllegalArgumentException - if the path is not null but blankvoid removePath()
ResultData writeLines(Supplier<String> lineSupplier)
Each call to this methods tries to continue writing after the last exported byte from the previous call.
The internal pointer to the last exported byte can and will be reseted by setting or removing the path.
The auto-connect flag is set to false.
lineSupplier - The supplier which provides line by line. A null value indicates the end.IllegalArgumentException - if the line supplier is nullIllegalArgumentException - if the path is null or emptyvoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2019. All rights reserved.