Implement proper flushing support to the encoder.
XZOutputStream.flush() will flush the encoder without
starting a new Block if possible. If the filter chain
doesn't support flushing, the current Block will be
finished.
To start a new Block even if the filter chain supports
flushing, one can use flushBlock(). There is also
setBlockFlushing which can change the default operation
of flush() but this should rarely be needed.
A small unfinished part of this commit was accidentally
included in daface1a5537e5ac37655ae0be696a13e8121f6c.
4 files changed