Completes the writing of a sequence of images begun with
prepareWriteSequence
. Any stream metadata that should come at the end of the sequence of images is written out, and any header information at the beginning of the sequence is patched up if necessary. If the output is an
ImageOutputStream
, data through the stream metadata at the end of the sequence are flushed and need not be readable or writable.
If canWriteSequence
returns false
, this method will throw an UnsupportedOperationException
.
The default implementation throws an IllegalStateException
if the output is null
, and otherwise throws an UnsupportedOperationException
.
@exception IllegalStateException if the output has notbeen set, or prepareWriteSequence
has not been called.
@exception UnsupportedOperationException ifcanWriteSequence
returns false
.
@exception IOException if an error occurs during writing.