This is fork of original project for investigation and personal use. Things edited:
Preon aims to provide a framework for dealing with binary encoded data; or more specifically, it aims to deal with situations in which bytes are considered to be overkill. The project is named after the "point-like" particles, conceived to be subcomponents of quarks and leptons. Let's just say very small particles that you don't see with the naked eye, but you probably rely on them without knowing.
Preon is to bitstream encoded content what JAXB is to XML, or Hibernate to relational databases. You define your in memory representation of the data structure in Java classes, and add annotations to 'tell' how it should be mapped onto a bitstream encoded representation. Preon takes care of the rest: it will give you a decoder, hyperlinked documentation on the encoding format, and - if you want - annotated hexdumps explaining you exactly what you're looking at.
- Preon does not a assume a finite set of compression algorithms. There are many ways to compress data. Preon allows compression experts to add components that from that part on become part of Preon's declarative language. Preon is extensible.
- Preon is capable of generating documentation that would not look bad on Wikipedia.
- Preon does not assume all data can be loaded in memory in a single go. Instead, it will pull data in on demand, only if it's needed. All logic required to understand how to jump to different parts of the file are hidden from the user.
- Preon does not assume there will only be a single thread consuming the data.
- Preon is declarative in nature, but the dependencies between different data elements inside an encoded representation can be modelled as complex expressions.
- Preon was used to creata a Java bytecode parser without writing a single line of imperative code.
- Bit Syntax for Java Wilfred Springer, 2009, Proceedings of the 24th ACM SIGPLAN conference companion on Object oriented programming systems languages and applications
- OOPSLA slides
- Preon Introduction
- Preon Under the Hood
Preon used to be hosted at the Codehaus. Unfortunately, the Codehaus no longer exists. You may still find reference to Codehaus in the source code. I might rename the package names of future versions to something that no longer references Codehaus.
The issue tracker used to be based on the one hosted by Codehaus. With that one gone, future issues will be tracked in Github.