simpleini4j


Лицензия

Лицензия

Категории

Категории

ini4j Библиотеки уровня приложения Configuration
Группа

Группа

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

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

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

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

0.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

simpleini4j
Организация-разработчик

Организация-разработчик

University of Waikato, Hamilton, NZ
Система контроля версий

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

https://github.com/fracpete/simpleini4j

Скачать simpleini4j

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.commons : commons-configuration2 jar 2.7
commons-beanutils : commons-beanutils jar 1.9.3

test (1)

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

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

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

simpleini4j

Wrapper for the Apache Hierarchical Configuration classes for handling INI files, to make handling easier.

Usage

Read/write

Here is how to read and write INI files:

// read
INIFile ini = INIFile.read("/some/where/config.ini");
System.out.println(ini);
// write
INIFile ini = ...
ini.write("/some/where/else/config.ini");

Operations

INIFile ini = ...

// setting
ini.set("section1", "intVal", 134);
ini.set("section1", "boolVal", false);
ini.set("section1", "doubleVal", 3.14);
System.out.println(ini);

// retrieving
System.out.println(ini.getInt("section1", "intVal"));
System.out.println(ini.getBoolean("section1", "boolVal"));
System.out.println(ini.getBoolean("section1", "doubleVal"));

// check for presence
if (ini.has("section1", "key1"))
  System.out.println("section1/key1: " + ini.get("section1", "key1"));

// remove value
ini.remove("section1", "doubleVal");
System.out.println(ini);

// remove section
ini.remove("section1");
System.out.println(ini);

Maven

Add the following dependency to your pom.xml:

  <dependency>
    <groupId>com.github.fracpete</groupId>
    <artifactId>simpleini4j</artifactId>
    <version>0.0.2</version>
  </dependency>

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

Версия
0.0.2
0.0.1