Skip to content

Instantly share code, notes, and snippets.

@kinow kinow/Test.java
Created Nov 16, 2019

Embed
What would you like to do?
# -*- coding: utf-8 -*-
[core]
name = Abinomn
hid = bsa
level = language
iso639-3 = bsa
latitude = -2.92281
longitude = 138.891
macroareas =
Papunesia
countries =
Indonesia (ID)
links = \
[Abinomn](http://endangeredlanguages.com/lang/1763) \
https://www.wikidata.org/entity/Q56648 \
https://en.wikipedia.org/wiki/Abinomn_language
[sources]
glottolog =
**hh:e:Lagerberg:Moegip**
**hh:h:SilzerClouse:Index**
**hh:h:SilzerHeikkinen:Irian**
**hh:hv:Foley:Northwest-New-Guinea**
**hh:hvtyp:DonohueMusgrave:Melanesia**
**hh:w:Fiwei:Abinomn**
[altnames]
multitree =
"Baso"
Abinomn
Avinomen
Foja
Foya
lexvo =
Abinomn [en]
Abinomn language [en]
Abinomneg [br]
Lingua abinomn [gl]
Llingua Abinomn [ast]
hhbib_lgcode =
Baso
elcat =
"Baso"
Abinomn
Avinomen
Foja
Foya
[triggers]
lgcode =
macrohistory
moegip
[identifier]
multitree = bsa
endangeredlanguages = 1763
[classification]
familyrefs =
**hh:h:SilzerClouse:Index**
**hh:hvtyp:DonohueMusgrave:Melanesia**
[endangerment]
status = shifting
source = ElCat
date = 2017-08-19T08:16:16
comment = Abinomn (1763-bsa) = Endangered (20 percent certain, based on the evidence available)
package org.apache.commons.configuration2;
import java.io.File;
import org.apache.commons.configuration2.builder.FileBasedConfigurationBuilder;
import org.apache.commons.configuration2.builder.fluent.Parameters;
public class Test {
public static void main(String[] args) throws Exception {
Parameters params = new Parameters();
File f = new File(Test.class.getResource("/test.ini").getFile());
FileBasedConfigurationBuilder<INIConfiguration> builder =
new FileBasedConfigurationBuilder<>(INIConfiguration.class)
.configure(params.fileBased().setFile(f));
INIConfiguration config = builder.getConfiguration();
SubnodeConfiguration coreSection = config.getSection("core");
System.out.println(coreSection.getString("links"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.