ISOUtility.getAsciiConfigFilePathForPackager2003

Returns the path for the ISO2003Ascii.xml file that is used to create AsciiPackager2003 instances.

public static String getAsciiConfigFilePathForPackager2003() throws IOException

Return values

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

Example

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

        return 0;
}