mayi-common/mayi-common-core/src/main/java/com/zf1976/mayi/common/core/compressors/gzip/GzipCompressorOutputStream.java
public void finish() throws IOException {
        if (!deflater.finished()) {
            deflater.finish();

            while (!deflater.finished()) {
                deflate();
            }

            writeTrailer();
        }
    }
/**
     * Finishes writing compressed data to the underlying stream without closing it.
     *
     * @throws IOException on error
     * @since 1.7
     */
Finishes writing compressed data to the underlying stream without closing it.
@throws IOException on error
@since 1.7
Finishes writing compressed data to the underlying stream without closing it . @throws IOException on error @since 1 . 7
public void finish() throws IOException {
        if (!deflater.finished()) {
            deflater.finish();
            while (!deflater.finished()) {
                deflate();
            }
            writeTrailer();
        }
    }
public void finish ( ) throws IOException { if ( ! deflater . finished ( ) ) { deflater . finish ( ) ; while ( ! deflater . finished ( ) ) { deflate ( ) ; } writeTrailer ( ) ; } }
Finishes writing compressed data to the underlying stream without closing it.
Finishes writing compressed data to the underlying stream without closing it .