public class OdsFileWriterBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
NamedOdsFileWriter |
build() |
OdsFileWriterBuilder |
file(File file)
Beware: this locks the file until the writer is closed
|
OdsFileWriterBuilder |
file(String filename)
Beware: this locks the file until the writer is closed
|
OdsFileWriterBuilder |
openResult(FileOpenResult lockResult)
Locks the file
|
OdsFileWriterBuilder |
outputStream(OutputStream out) |
OdsFileWriterBuilder |
zipBuilder(ZipUTF8WriterBuilderImpl builder) |
public NamedOdsFileWriter build()
FileNotFoundException - if there is no stream to writepublic OdsFileWriterBuilder file(String filename) throws FileNotFoundException
filename - the name of the destination fileFileNotFoundExceptionpublic OdsFileWriterBuilder file(File file) throws FileNotFoundException
file - the destination fileFileNotFoundExceptionpublic OdsFileWriterBuilder outputStream(OutputStream out)
out - where to writepublic OdsFileWriterBuilder openResult(FileOpenResult lockResult) throws FileNotFoundException
lockResult - the result of a file lockFileNotFoundException - the file exists but is a directory
rather than a regular file, does not exist but cannot
be created, or cannot be opened for any other reasonpublic OdsFileWriterBuilder zipBuilder(ZipUTF8WriterBuilderImpl builder)
builder - a builder for the ZipOutputStream and the Writer (buffers,
level, ...)Copyright © 2016–2021. All rights reserved.