Java implementation of "OCR Giro" specification by Nets. To see the javadoc and package structure go to the java-netsgiro GitHub pages.
It currently does not support "Autogiro", "AvtaleGiro", "Direkte remittering" or "Egiro". While tests are limited it is not "production ready" and comes with no guarantees.
If you have a OCR file:
List<String> lines = Files.readAllLines(Paths.get("path", "to", "ocr.txt"), StandardCharsets.ISO_8859_1);
Parser p = new Parser(lines);
Forsendelse f = p.parse();
To build:
./gradlew build
To generate javadoc:
./gradlew javadoc
To test with coverage report:
./gradlew test jacocoTestReport
- The test resource
src/main/test/resources/ocr1.txt
is from the OCR Giro specification. - The test resource
src/main/test/resources/ocr2.txt
isocr_giro_transactions.txt
from python-netsgiro. Their project is licensed under Apache 2.0, which can be read inexternal/apache2.0.txt
. - The rest of the test resources are derivates of the above, or crafted for the tests in this project. They are under the license of this project.
This project is released under the Apache License 2.0, as found in the LICENSE
file.
- python-netsgiro: A Python implementation.