Skip to content

EBS - Element Based Serialization, a simple serialization format

Notifications You must be signed in to change notification settings

JulieWoolie/EBS

Repository files navigation

EBS

EBS - Element Based Serialization is a simple serialization format I made to use for my personal projects.

Reading/Writing

Reading and Writing to a file or stream with EBS is easy, you can use EBS.write(EbsElement, OutputStream) to write to an output stream or EBS.writeFile(EbsElement, File)/EbsIo.writeFile(EbsElement, Path) to write to a file. To read an element use EbsIo.read(InputStream), EbsIo.readFile(File) or EbsIo.readFile(Path)

Compounds

Most data in EBS will be stored in something called a compound, you can create it with EbsCompound.create() or EbsCompound.create(int) if you want the compound to start with a specific size.

The EbsCompound is split into 3 different interfaces, CompoundGetter which hosts getter methods such as EbsElement.get(String); CompoundSetter which has methods relating to adding elements into the compound and finally EbsCompound itself which implements EbsElement.

For more info and javadocs check out the above hyper links

Dependencies

EBS depends on unimi's FastUtil

About

EBS - Element Based Serialization, a simple serialization format

Topics

Resources

Stars

Watchers

Forks

Languages