public class CdrFileProcessor extends Object
CdrProcessor
s to process encountered records.Constructor and Description |
---|
CdrFileProcessor(String path,
boolean continueOnFailure,
int sizeLimit,
CdrProcessor... processors)
Constructs a CDR file processor to process provided file using specified
CdrProcessor s. |
public CdrFileProcessor(String path, boolean continueOnFailure, int sizeLimit, CdrProcessor... processors) throws IOException
CdrProcessor
s.path
- denotes a path to binary CDR file to process.continueOnFailure
- should processing continue after error decoding a record or exception thrown by CdrProcessor
.sizeLimit
- maximum file size in bytes to be processed, value of zero or less results in using the default of 64 MB.processors
- CdrProcessor
s invoked to process encountered records.IOException
- if an input or output error occurs when opening CDR file.public void process() throws IOException
IOException
- if an input or output error occurs or CDR file does not adhere to expected format.