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
tree: d089ad070df859fda7b3a36fb89d30b919f892c2
  1. src/
  2. .gitignore
  3. COPYING
  4. GNUmakefile
  5. README
  6. THANKS