MVN

io.github.markrileybot : heatshrink-java

Maven & Gradle

Oct 19, 2022
9 stars

heatshrink-java · # heatshrink-java Java library used to encode/decode [heatshrink](https://github.com/atomicobject/heatshrink) compressed data. ## Building ```bash ./gradlew build ``` ## Gradle dependency See https://search.maven.org/artifact/io.github.markrileybot/heatshrink-java/ ## Usage ### Java library ```java int windowSize = 9; int lookaheadSize = 8; ByteArrayOutputStream baos = new ByteArrayOutputStream(); try(HsOutputStream out = new HsOutputStream(baos, windowSize, lookaheadSize)) { out.write("ABCABCABCABCABCABC".getBytes()); } try(HsInputStream hsi = new HsInputStream(new ByteArrayInutStream(baos.toByteArray()), windowSize, lookaheadSize)) { byte[] res = new byte[512]; int len = hsi.read(res); System.out.println(new String(res, 0, len)); } ``` ### CLI ```bash $ java -jar heatshrink-java-exe.jar [-h] [-e|-d] [-v] [-w SIZE] [-l BITS] [IN_FILE] [OUT_FILE] ``` ## Status [![Build Status](https://github.com/markrileybot/heatshrink-java/actions/workflows/gradle-publish.yml/badge.svg)](https://github.com/markrileybot/heatshrink-java/actions/workflows/gradle-publish.yml) [![Coverage Status](https://coveralls.io/repos/github/markrileybot/heatshrink-java/badge.svg?branch=master)](https://coveralls.io/github/markrileybot/heatshrink-java?branch=master) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.markrileybot/geokey/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.markrileybot/geokey)

<dependency>
    <groupId>io.github.markrileybot</groupId>
    <artifactId>heatshrink-java</artifactId>
    <version>1.0.1</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of io.github.markrileybot : heatshrink-java to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.0.1

All Versions

Choose a version of io.github.markrileybot : heatshrink-java to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.0.x
heatshrink-java-1.0.1
heatshrink-java-1.0.0

How to add a dependency to Maven

Add the following io.github.markrileybot : heatshrink-java maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>io.github.markrileybot</groupId>
    <artifactId>heatshrink-java</artifactId>
    <version>1.0.1</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following io.github.markrileybot : heatshrink-java gradle dependency to your build.gradle file:

implementation 'io.github.markrileybot:heatshrink-java:1.0.1'

Gradle Kotlin DSL: Add the following io.github.markrileybot : heatshrink-java gradle kotlin dependency to your build.gradle.kts file:

implementation("io.github.markrileybot:heatshrink-java:1.0.1")

How to add a dependency to SBT Scala

SBT Scala: Add the following io.github.markrileybot : heatshrink-java sbt scala dependency to your build.sbt file:

libraryDependencies += "io.github.markrileybot" % "heatshrink-java" % "1.0.1"