Home / Function/ compress() — netty Function Reference

compress() — netty Function Reference

Architecture documentation for the compress() function in Bzip2DecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0dde75d1_dce9_b970_b363_1fe5a9c1285f["compress()"]
  53eb2ef4_6844_0384_3483_6c7a17c214e0["Bzip2DecoderTest"]
  0dde75d1_dce9_b970_b363_1fe5a9c1285f -->|defined in| 53eb2ef4_6844_0384_3483_6c7a17c214e0
  style 0dde75d1_dce9_b970_b363_1fe5a9c1285f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java lines 191–199

    @Override
    protected byte[] compress(byte[] data) throws Exception {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        BZip2CompressorOutputStream bZip2Os = new BZip2CompressorOutputStream(os, MIN_BLOCK_SIZE);
        bZip2Os.write(data);
        bZip2Os.close();

        return os.toByteArray();
    }

Domain

Subdomains

Frequently Asked Questions

What does compress() do?
compress() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java.
Where is compress() defined?
compress() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/Bzip2DecoderTest.java at line 191.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free