Skip to content
/ jbibx Public

A Java library for reading and writing .bibx files

License

Notifications You must be signed in to change notification settings

rBiblia/jbibx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jbibx

A Java library for reading and writing .bibx files.

Compatible with Java 7+.

What's it good for?

.bibx is rBiblia's custom format for storing Bible translations. It's based on open standards (XML and gzip) and very simple.

This library brings .bibx into the Java world. It completely automates serialization and deserialization of .bibx files.

Usage

First, add it to your project. For Gradle, add a repository and dependency to build.gradle:

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    compile 'com.github.rBiblia:jbibx:master-SNAPSHOT'
}

For other build systems, see instructions on JitPack.io.

Then, to load a .bibx file:

Bible bible = new BibxSerde().deserialize(new File("SomeBible.bibx"));

To write a bible to a file:

new BibxSerde.serialize(bible, new File("SomeBible.bibx"))

Bible class and its relatives are immutable, so if you want to edit existing translations, you'll have to allocate new ones.

About

A Java library for reading and writing .bibx files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages