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()
public OdsFileWriterBuilder file(String filename) throws FileNotFoundException
filename - the name of the destination fileFileNotFoundException - if the file does not exist.public OdsFileWriterBuilder file(File file) throws FileNotFoundException
file - the destination fileFileNotFoundException - if the file does not existpublic 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.