You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that I have matched the code style, as you request. I took your RoyalBC code,
and converted to Austpost. All my changes were new classes, as I am not sure what the deal
is with changing existing code.
Obviously, I had to change;
org.krysalis.barcode4j.DefaultBarcodeClassResolver
by adding;
registerBarcodeClass("austpost",
"org.krysalis.barcode4j.impl.fourstate.AustPost", true);
Please review and let me know what you think. Any suggestions or changes you want made to it,
go right ahead, or let me know and I will make them.
I had to override some methods in the Fourstate classes, as the bars are reversed in
Austpost, then they are in Fourstate.
Additions;
org.krysalis.barcode4j.impl.fourstate.AustPost
org.krysalis.barcode4j.impl.fourstate.AustPostBean
org.krysalis.barcode4j.impl.fourstate.AustPostLogicImpl
These 3 you should recognise, very similar to RoyalMailCBC.
Just has some override methods for the bar calcs.
org.krysalis.barcode4j.impl.fourstate.FourStateAustPostLogicHandler
This class overrides the addbar, as the bars are reversed.
org.krysalis.barcode4j.impl.fourstate.AbstractAustPostLogicImpl
This class is the one that converts the Australian Format control and Sort code(DPID)
into the bar value representation. It does the Reed solomon calcs.
Add the Australia Post barcode generation from the Format control code and Sort code (DPID).
https://sourceforge.net/p/barcode4j/patches/18/
Created: 2009-01-02 by Antun Oreskovic
the zip contained following readme:
The text was updated successfully, but these errors were encountered: