public class OdsFileDirectWriter extends Object implements NamedOdsFileWriter
| Modifier and Type | Method and Description |
|---|---|
static OdsFileWriterBuilder |
builder(Logger logger,
NamedOdsDocument document)
Return a builder for direct writer
|
void |
close()
Close this writer
|
NamedOdsDocument |
document() |
void |
save()
Save the new file.
|
void |
update(OdsAsyncFlusher flusher)
Update the writer with a flusher
|
public static OdsFileWriterBuilder builder(Logger logger, NamedOdsDocument document)
logger - the loggerdocument - the document to writepublic void close()
throws IOException
NamedOdsFileWriterclose in interface NamedOdsFileWriterIOException - if an I/O error occurspublic NamedOdsDocument document()
document in interface NamedOdsFileWriterpublic void save()
throws IOException
NamedOdsFileWritersave in interface NamedOdsFileWriterIOException - If an I/O error occurspublic void update(OdsAsyncFlusher flusher) throws IOException
NamedOdsFileWriterupdate in interface NamedOdsFileWriterflusher - the chosen flusherIOException - if an I/O error occursCopyright © 2016–2021. All rights reserved.