public interface IFileWriter
Modifier and Type | Interface and Description |
---|---|
static class |
IFileWriter.FileType
Enum used to choose from the strongly typed parameters of file types
|
Modifier and Type | Method and Description |
---|---|
IFileWriter |
fileName(String value)
Sets the file name
|
IFileWriter |
fileName(String value,
boolean tryToSetExtension)
Sets the filename and parse the value to try to set the extension
|
IFileWriter |
fileType(IFileWriter.FileType value)
Sets the type in which the file will be saved
|
default String |
getDefaultFileName() |
File |
getLastSavedXlsxFile() |
boolean |
save()
Saves the current document to the current file or finds the file with the name set in
fileName
and saves it |
void |
save(OutputStream stream)
Saves the current document to the given stream and saves it
|
boolean save()
fileName
and saves it
ATTENTION! Unsupported data may be lost
true
if the file was savedvoid save(OutputStream stream)
ATTENTION! Unsupported data may be lost
stream
- the given streamIFileWriter fileName(String value)
value
- target file nameIFileWriter
for further actionsIFileWriter fileName(String value, boolean tryToSetExtension)
value
- target file nametryToSetExtension
- if true
then parses the value to find and set the extension. Otherwise will
save the file with default extension or set by user call of fileType(FileType)
IFileWriter
for further actionsIFileWriter.FileType
IFileWriter fileType(IFileWriter.FileType value)
value
- the type of the fileIFileWriter
for further actionsIFileWriter.FileType
default String getDefaultFileName()
File getLastSavedXlsxFile()
Copyright © 2024. All rights reserved.