public boolean encodeForLZMA2 ( ) { // LZMA2 uses RangeEncoderToBuffer so IOExceptions aren't possible. try { if ( ! lz . isStarted ( ) && ! encodeInit ( ) ) return false ; while ( uncompressedSize <= LZMA2_UNCOMPRESSED_LIMIT && rc . getPendingSize ( ) <= LZMA2_COMPRESSED_LIMIT ) if ( ! encodeSymbol ( ) ) return false ; } catch ( IOException e ) { throw new Error ( ) ; } return true ; }
Compresses for LZMA2 .