See: Description
| Interface | Description |
|---|---|
| Formdef |
Formdef is basically a collection of medium maps.
|
| Class | Description |
|---|---|
| FormdefScanner |
Reads the formdef and finds all medium maps
|
| MediumHasher | |
| MediumMap |
| Enum | Description |
|---|---|
| Plex |
provides helper for working with formdef and medium maps (aka copy group).
Start with reading the formdef:
try(AfpInputStream ain = new AfpInputStream(new FileInputStream(file))) {
Formdef formdef = FormdefScanner.scan(ain);
}
Find some medium maps:
MediumMap map = formdef.findByName("MM000000");
map = formdef.findFirstByBin(1);
map = formdef.findFirstByMediaName("A108", Plex.DUPLEX);
MediumMap[] maps = formdef.mediumMaps();
Inspect medium map:
Integer bin = map.getBin();
Plex plex = map.getPlex();
Copyright © 2017. All rights reserved.