Class ZstdCompressorOutputStream

    • Constructor Detail

      • ZstdCompressorOutputStream

        public ZstdCompressorOutputStream​(java.io.OutputStream outStream)
                                   throws java.io.IOException
        Constructs a new instance using default Zstd parameter values.
        Parameters:
        outStream - the output stream.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • ZstdCompressorOutputStream

        @Deprecated
        public ZstdCompressorOutputStream​(java.io.OutputStream outStream,
                                          int level)
                                   throws java.io.IOException
        Deprecated.
        Constructs a new instance using default Zstd parameter values plus a compression level.
        Parameters:
        outStream - the output stream.
        level - The compression level, from 0 to 9, where the default is ZstdConstants.ZSTD_CLEVEL_DEFAULT.
        Throws:
        java.io.IOException - if an I/O error occurs.
        Since:
        1.18
      • ZstdCompressorOutputStream

        @Deprecated
        public ZstdCompressorOutputStream​(java.io.OutputStream outStream,
                                          int level,
                                          boolean closeFrameOnFlush)
                                   throws java.io.IOException
        Deprecated.
        Constructs a new instance using default Zstd parameter values plus a compression level and checksum setting.
        Parameters:
        outStream - the output stream.
        level - The compression level, from 0 to 9, where the default is ZstdConstants.ZSTD_CLEVEL_DEFAULT.
        closeFrameOnFlush - whether to close the frame on flush.
        Throws:
        java.io.IOException - if an I/O error occurs.
        Since:
        1.18
      • ZstdCompressorOutputStream

        @Deprecated
        public ZstdCompressorOutputStream​(java.io.OutputStream outStream,
                                          int level,
                                          boolean closeFrameOnFlush,
                                          boolean checksum)
                                   throws java.io.IOException
        Deprecated.
        Constructs a new instance using default Zstd parameter values plus a compression level, closeFrameOnFlush and checksum settings.
        Parameters:
        outStream - the output stream.
        level - The compression level, from 0 to 9, where the default is ZstdConstants.ZSTD_CLEVEL_DEFAULT.
        closeFrameOnFlush - whether to close the frame on flush.
        checksum - Whether a 32-bits checksum of content is written at end of frame.
        Throws:
        java.io.IOException - if an I/O error occurs.
        Since:
        1.18