com.minderupt.micrtools.parser
Class MICRParserImpl
java.lang.Object
com.minderupt.micrtools.parser.MICRParserImpl
- All Implemented Interfaces:
- MICRParser
public class MICRParserImpl
- extends java.lang.Object
- implements MICRParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MICRParserImpl
public MICRParserImpl()
parseMicrString
public MICR parseMicrString(java.lang.String micr)
throws FieldValidationException,
MICRParseException
- Parses MICR string from check, according to specifications. MICR string
should match the following positions (reading from left to right):
aux-on-us: optional, positions 1-17 inclusive surrounded by on-us symbols
epc: optional, position 18
routing number (RTN): required, positions 19-29 inclusive surrounded by transit symbol
on-us: optional, positions 30 - 50 inclusive, may have on-us symbol
amount: optional, positions 51 - 63 inclusive
- Specified by:
parseMicrString
in interface MICRParser
- Parameters:
micr
- String The raw MICR of a check or deposit item
- Returns:
- MICR The parsed and validated MICR from a check or deposit item, split into fields
- Throws:
FieldValidationException
- If any of the fields does not pass validation
MICRParseException
- If the MICR cannot be parsed accurately
setTransitSymbol
public void setTransitSymbol(java.lang.String transitSymbol)
- Specified by:
setTransitSymbol
in interface MICRParser
getTransitSymbol
public java.lang.String getTransitSymbol()
- Specified by:
getTransitSymbol
in interface MICRParser
setOnUsSymbol
public void setOnUsSymbol(java.lang.String onUsSymbol)
- Specified by:
setOnUsSymbol
in interface MICRParser
getOnUsSymbol
public java.lang.String getOnUsSymbol()
- Specified by:
getOnUsSymbol
in interface MICRParser
setAmountSymbol
public void setAmountSymbol(java.lang.String amountSymbol)
- Specified by:
setAmountSymbol
in interface MICRParser
getAmountSymbol
public java.lang.String getAmountSymbol()
- Specified by:
getAmountSymbol
in interface MICRParser
setDashSymbol
public void setDashSymbol(java.lang.String dashSymbol)
- Specified by:
setDashSymbol
in interface MICRParser
getDashSymbol
public java.lang.String getDashSymbol()
- Specified by:
getDashSymbol
in interface MICRParser
setRTNFieldValidator
public void setRTNFieldValidator(FieldValidator validator)
- Specified by:
setRTNFieldValidator
in interface MICRParser
getRTNFieldValidator
public FieldValidator getRTNFieldValidator()
- Specified by:
getRTNFieldValidator
in interface MICRParser
setOnUsFieldValidator
public void setOnUsFieldValidator(FieldValidator validator)
- Specified by:
setOnUsFieldValidator
in interface MICRParser
getOnUsFieldValidator
public FieldValidator getOnUsFieldValidator()
- Specified by:
getOnUsFieldValidator
in interface MICRParser
setAuxOnUsFieldValidator
public void setAuxOnUsFieldValidator(FieldValidator validator)
- Specified by:
setAuxOnUsFieldValidator
in interface MICRParser
getAuxOnUsFieldValidator
public FieldValidator getAuxOnUsFieldValidator()
- Specified by:
getAuxOnUsFieldValidator
in interface MICRParser
setAmountFieldValidator
public void setAmountFieldValidator(FieldValidator validator)
- Specified by:
setAmountFieldValidator
in interface MICRParser
getAmountFieldValidator
public FieldValidator getAmountFieldValidator()
- Specified by:
getAmountFieldValidator
in interface MICRParser
setSerialNumberFieldValidator
public void setSerialNumberFieldValidator(FieldValidator validator)
- Specified by:
setSerialNumberFieldValidator
in interface MICRParser
getSerialNumberFieldValidator
public FieldValidator getSerialNumberFieldValidator()
- Specified by:
getSerialNumberFieldValidator
in interface MICRParser
Copyright 2006 null. All Rights Reserved.