ISOUtility.getBinaryConfigFilePathForPackager2003

Returns the path for the ISO2003Binary.xml file that is used to create BinaryPackager2003 instances.

public static String getBinaryConfigFilePathForPackager2003() throws IOException

Return values

This function returns a string that represents the full path of the ISO2003Binary.xml file.

Example

Copy code
public int init() throws Throwable {
        
        GenericPackager pack = new GenericPackager(ISOUtility.getBinaryConfigFilePathForPackager2003());
        LrJposChannel.initChannel(LrJposChannel.ChannelType.ASCIIChannel);
        LrJposChannel.setHost("the server's host name");
        LrJposChannel.setPort(8000);
        LrJposChannel.setPackager(pack);
        LrJposChannel.connect();

        return 0;
}