I have generated the Java classes using the ASN schema file, and using the top level class I can successfully decode the file, however it only decode one record, and the data file is around 10-20MB in size so I'm sure it has more than one record, so my question is how do I loop through all the records in the data file using the top level java object.
ex:
my code is similar to this
File inputFile = new File("c:\\path\\to\\CDR-file");
FileInputStream is = new FileInputStream(inputFile);
CallDataRecord cdr = new CallDataRecord();
cdr.decode(is);
Above code gives me the very first record CallDataRecord but how do I traverse the rest of the CallDataRecord colleciton.
I have generated the Java classes using the ASN schema file, and using the top level class I can successfully decode the file, however it only decode one record, and the data file is around 10-20MB in size so I'm sure it has more than one record, so my question is how do I loop through all the records in the data file using the top level java object.
ex: my code is similar to this
Above code gives me the very first record
CallDataRecord
but how do I traverse the rest of theCallDataRecord
colleciton.Thank you