public class AnonymousOdsFileWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
OdsDocument |
document() |
void |
save(OutputStream out)
Writes the document to a stream.
|
void |
save(OutputStream out,
ZipUTF8WriterBuilderImpl builder)
Deprecated.
use `save(ZipUTF8Writer writer)`
|
void |
save(ZipUTF8Writer writer)
Writes the document to a writer.
|
void |
saveAs(File file)
Save the new file.
|
void |
saveAs(File file,
ZipUTF8WriterBuilder builder)
Save the document to file.
|
void |
saveAs(String filename)
Save the new file.
|
void |
saveAs(String filename,
ZipUTF8WriterBuilder builder)
Save the document to filename.
|
public OdsDocument document()
public void save(OutputStream out) throws IOException
out - The OutputStream that should be used.IOException - The file can't be saved.@Deprecated public void save(OutputStream out, ZipUTF8WriterBuilderImpl builder) throws IOException
out - The OutputStream that should be used.builder - a builder for the ZipOutputStream and the Writer (buffers,
level, ...)IOException - The file can't be saved.public void save(ZipUTF8Writer writer) throws IOException
writer - the ZipUTF8WriterImpl that should be usedIOException - If an I/O error occurs during the savepublic void saveAs(String filename) throws IOException
filename - the name of the destination fileIOException - If an I/O error occurs during the savepublic void saveAs(File file) throws IOException
file - the destination fileIOException - If an I/O error occurspublic void saveAs(String filename, ZipUTF8WriterBuilder builder) throws IOException
filename - the name of the destination filebuilder - a builder for the ZipOutputStream and the Writer (buffers,
level, ...)IOException - if the file was not savedpublic void saveAs(File file, ZipUTF8WriterBuilder builder) throws IOException
file - the destination filebuilder - a builder for the ZipOutputStream and the Writer (buffers,
level, ...)IOException - if the file was not savedCopyright © 2016–2021. All rights reserved.