public class OdsFileWriterAdapter extends Object implements NamedOdsFileWriter
while (this.writerAdapter.isNotStopped()) {
this.writerAdapter.waitForData();
this.writerAdapter.flushAdaptee();
}
this.writerAdapter.flushAdaptee();
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this writer
|
static OdsFileWriterAdapter |
create(Logger logger,
NamedOdsFileWriter adaptee) |
NamedOdsDocument |
document() |
void |
flushAdaptee()
Flushes all available flushers to the adaptee writer.
|
boolean |
isNotStopped() |
void |
save()
Save the new file.
|
void |
update(OdsAsyncFlusher flusher)
Update the writer with a flusher
|
void |
waitForData()
wait for the data
|
public static OdsFileWriterAdapter create(Logger logger, NamedOdsFileWriter adaptee)
logger - the loggeradaptee - the adaptee writerpublic void close()
NamedOdsFileWriterclose in interface NamedOdsFileWriterpublic NamedOdsDocument document()
document in interface NamedOdsFileWriterpublic void save()
NamedOdsFileWritersave in interface NamedOdsFileWriterpublic void update(OdsAsyncFlusher flusher)
NamedOdsFileWriterupdate in interface NamedOdsFileWriterflusher - the chosen flusherpublic void flushAdaptee()
throws IOException
IOException - if the adaptee throws an IOExceptionpublic boolean isNotStopped()
public void waitForData()
Copyright © 2016–2021. All rights reserved.