java-qpack

Java QPack library: QPack is a fast and efficient serialization format like MessagePack.

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

technology.transceptor
Идентификатор

Идентификатор

java-qpack
Последняя версия

Последняя версия

0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

java-qpack
Java QPack library: QPack is a fast and efficient serialization format like MessagePack.
Ссылка на сайт

Ссылка на сайт

https://github.com/transceptor-technology/java-qpack
Система контроля версий

Система контроля версий

https://github.com/transceptor-technology/java-qpack

Скачать java-qpack

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/technology.transceptor/java-qpack/ -->
<dependency>
    <groupId>technology.transceptor</groupId>
    <artifactId>java-qpack</artifactId>
    <version>0.0</version>
</dependency>
// https://jarcasting.com/artifacts/technology.transceptor/java-qpack/
implementation 'technology.transceptor:java-qpack:0.0'
// https://jarcasting.com/artifacts/technology.transceptor/java-qpack/
implementation ("technology.transceptor:java-qpack:0.0")
'technology.transceptor:java-qpack:jar:0.0'
<dependency org="technology.transceptor" name="java-qpack" rev="0.0">
  <artifact name="java-qpack" type="jar" />
</dependency>
@Grapes(
@Grab(group='technology.transceptor', module='java-qpack', version='0.0')
)
libraryDependencies += "technology.transceptor" % "java-qpack" % "0.0"
[technology.transceptor/java-qpack "0.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

QPack Java

QPack is a fast and efficient serialization format like MessagePack. One key difference is flexible map and array support which allows to write directly to a qpack buffer without the need to know the size for the map or array beforehand.

Installation

You can download the latest version here. But you can also clone this repository and build the project using maven (mvn >= 3.3 and java 8 are recommended):

mvn clean install -Dgpg.skip

After building the project, grab the target/java-qpack-0.0-SNAPSHOT.jar file and add it to your own project as library.

Pack


Create an instance of QPack and use its pack method

qpack.pack(Object data);

Unpack

When unpack is called with only the first parameter, each String will be returned as bytes.

qpack.unpack(byte[] qp, String decoder);

Example

package qpack-test

import java.util.Arrays;
import transceptor.technology.QPack;

public class QPackTest() {

    public static void main() {
        QPack qpack = new QPack();

        String[] data = new String[]{"test", "qpack", "Java"};

        byte[] qp = qpack.pack(data);

        Object[] result = (Object[]) qpack.unpack(qp, "utf-8");

        System.out.println(Arrays.toString(result));
    }

}
technology.transceptor

transceptor technology

Building cloud enabled and open source software solutions.

Версии библиотеки

Версия
0.0