Kofax Mobile SDK API Reference
Classes | Public Member Functions | List of all members
MicrParser Class Reference

This class parses the MICR data line from different check detection algorithms. More...

Public Member Functions

 MicrParser (String micr)
 The MicrParser class constructor with parameter. More...
 
 MicrParser ()
 The MicrParser class default constructor. More...
 
boolean ParseMicr (String micrData) throws NullPointerException
 Given the provided MICR data, parse into standard MICR fields. More...
 
boolean isMicrValid ()
 
MicrLine getMicrLine ()
 
String getAccountNumber ()
 
String getTransitNumber ()
 
String getCheckNumber ()
 

Detailed Description

This class parses the MICR data line from different check detection algorithms.

This class provides a means of retrieving the raw properties of the provided MICR data line. These properties are:

Constructor & Destructor Documentation

MicrParser ( String  micr)

The MicrParser class constructor with parameter.

This constructor takes a String parameter that gets passed to the ParseMicr method.

Parameters
micr

The MicrParser class default constructor.

This is the default constructor for the MicrParser class. It creates a new MicrLine object.

Member Function Documentation

String getAccountNumber ( )

Returns the account number from the parsed MICR string.

Returns
String
String getCheckNumber ( )

Returns the check number from the parsed MICR string. The source of the check number depends on the check type, either personal or business.

Returns
String
MicrLine getMicrLine ( )

Returns the associated MicrLine object containing the component MICR fields.

Returns
MicrLine
String getTransitNumber ( )

Returns the transit number from the parsed MICR string.

Returns
String
boolean isMicrValid ( )

Returns a flag indicating the provided MICR string was valid.

Returns
boolean
boolean ParseMicr ( String  micrData) throws NullPointerException

Given the provided MICR data, parse into standard MICR fields.

This is the main method of the MicrParser object. It parses the given micrData string into the component MICR fields: auxiliaryOnUs When present (usually on business check), the check number. epc Special purpose value. transitNumber Transit field used for routing number. onUs1 Account number. onUs2 Special bank use; on a personal check, the check number. amount If present, the check amount.

Parameters
micrData
Returns
boolean
Exceptions
NullPointerException(micrData parameter is null).

The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.