A Java / JNA wrapper for libmagic
Given an instance of the libmagic shared library it provides a Java class that facilitates magic identification of streams or files.
Convenient and efficient invocation of libmagic from within JVM.
The project is aimed at developers who wish to perform efficient magic identification from within Jvm.
Allows the caller to:
- Compile magic files to a .mgc database
- Load an existing .mgc database
- Perform magic identification of files, Input Streams, and nio.Buffers
- Tidy API in line with user requests, just raise an Issue
TODO: Requirements.
Currently no direct download
TODO: Install.
TODO:
TODO:
- Publication 1
- Publication 2
https://github.com/openplanets/libmagic-jna-wrapper is released under Apache version 2.0 license.
Part of this work was supported by the European Union in the 7th Framework Program, IST, through the SCAPE project, Contract 270137.
This tool is supported by the Open Planets Foundation. Commercial support is provided by company X.
To build you require:
- Git client
- Apache Maven
- Java Developers Kit (e.g. OpenJDK 6)
For using the recommended IDE you require:
- Eclipse of Java
TODO:
To compile go to the sources folder and execute the command:
$ mvn clean installTODO:
- Fork the GitHub project
- Change the code and push into the forked project
- Submit a pull request
To increase the changes of you code being accepted and merged into the official source here's a checklist of things to go over before submitting a contribution. For example:
- Has unit tests (that covers at least 80% of the code)
- Has documentation (at least 80% of public API)
- Agrees to contributor license agreement, certifying that any contributed code is original work and that the copyright is turned over to the project
