FileProcessor Interface
This section contains a portion of the FileProcessor interface related to the file parsing functionality.
package com.splwg.d1.sgg.osb.common;
public interface FileProcessor {
public enum TransactionType {
USAGE, EVENT
}
/**
* FileParser usage method
*
* @return a string containing the name of currently processed inbound file
*/
String getOrigin();
/**
* FileParser usage method Creates a file in the Error Folder and saves
* passed row parameter to it
*
* @param position
* the number representing the position in file where invalid
* raw data is started
* @param row
* the byte array containing an invalid raw data in vendor
* specific format the same with format of incoming file
* @param failCause
* the string showing the cause of fail It will be used while
* logging the fail message.
*/
void saveInvalidRow(long position, byte[] row, String failCause);
/**
* FileParser usage method
* Returns the current offset in input file
*/
long getCurrentInputPosition();
}