|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.digertech.sdk.reader.DTFileReader
public final class DTFileReader
Class DTFileReader reads the records from the Image Cash Letter(ICL) file. Any class
requires the ICL records passed in should implement ProcessingInterface and call the
readRecords(ProcessingInterface) metho of class DTFileReader.
Class DTFileReader is part of DigerTech Inc. file processing SDK. License key is
required to performance the process. For each JVM, the method setLicenseKey should
be called one and only one time which will validate the license key.
If the license key is valid, DTFileReader returns the valid product id of the license.
Othwise a free version product id is returned. The following are all valid product id:
SDK_FREE
SDK_FILE_READER_DEVELOPER
SDK_FILE_READER_ENTERPRISE_I
SDK_FILE_READER_ENTERPRISE_II
After the ICL file is processed, the method close should be called to close
the ICL file.
Field Summary | |
---|---|
static int |
SDK_FILE_READER_DEVELOPER
|
static int |
SDK_FILE_READER_ENTERPRISE_I
|
static int |
SDK_FILE_READER_ENTERPRISE_II
|
static int |
SDK_FREE
|
Constructor Summary | |
---|---|
DTFileReader(java.io.File file)
Constructs a newly allocated DTFileReader that represents the ICL file reader. |
|
DTFileReader(java.io.File file,
int format)
Constructs a newly allocated DTFileReader that represents the ICL file reader. |
Method Summary | |
---|---|
void |
close()
Close the ICL file. |
static FPLicenseInfo |
getLicenseInfo()
If a license key is set to the SDK and the license key is valid, the license info will be return after it is validated. |
void |
readRecords(ReaderInterface processInterface)
Read records from the ICL file and pass records to the class implements ProcessingInterface by calling the processRecord(int recordType, X9Record record) method in the class. |
static int |
setLicenseKey(java.lang.String licenseKey)
Set the license key to the SDK to validate the license. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SDK_FREE
public static final int SDK_FILE_READER_DEVELOPER
public static final int SDK_FILE_READER_ENTERPRISE_I
public static final int SDK_FILE_READER_ENTERPRISE_II
Constructor Detail |
---|
public DTFileReader(java.io.File file) throws FileIOException
file
- the image cash letter file.
FileIOException
- if there is an error initialize the file reader.public DTFileReader(java.io.File file, int format) throws FileIOException
file
- the image cash letter file.format
- the image cash letter file format.
FileIOException
- if there is an error initialize the file reader.Method Detail |
---|
public void close() throws FileIOException
FileIOException
- if there is an error closing the file.public final void readRecords(ReaderInterface processInterface) throws FileIOException
processInterface
- interface which the class processes the records.
FileIOException
- if there an error read records from the ICL file.public static int setLicenseKey(java.lang.String licenseKey)
public static FPLicenseInfo getLicenseInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |