AR arhives

Java library to work with AR archives

Лицензия

Лицензия

Группа

Группа

com.aerse
Идентификатор

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

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

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

2.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

AR arhives
Java library to work with AR archives
Ссылка на сайт

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

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

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

https://github.com/dernasherbrezon/java-ar

Скачать ar

Имя Файла Размер
ar-2.4.pom
ar-2.4.jar 15 KB
ar-2.4-sources.jar 12 KB
ar-2.4-javadoc.jar 40 KB
Обзор

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

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

Зависимости

test (1)

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

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

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

Java library to work with AR arhives. For more info about format please consult: http://en.wikipedia.org/wiki/Ar_%28Unix%29

Features

  • input and output stream
  • support for GNU long file names

Maven support

Add dependency:

<dependency>
	<groupId>com.aerse</groupId>
	<artifactId>ar</artifactId>
	<version>2.4</version>
</dependency>

Read

InputStream is = ...
ArInputStream aris = null;
try {
	aris = new ArInputStream(is);
	ArEntry curEntry = null;
	while( (curEntry = aris.getNextEntry()) != null ) {
	    //process entry
	}
} catch(Exception e) {
	//do logging. handle exception
} finally {
	if( aris != null ) {
	    try {
	        aris.close();
	    } catch(IOException e) {
	        //do logging
	    }
	}
}

Write

OutputStream os = ...
ArEntry[] entries = ...
ArOutputStream aros = null;
try {
	aros = new ArOutputStream(os);
	aros.setEntries(entries);
} catch(Exception e) {
	//do logging. handle exception
} finally {
	if( aros != null ) {
	    try {
	        aros.close();
	    } catch(IOException e) {
	        //do logging
	    }
	}
}

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

Версия
2.4