int messagesRead = 0;
long startTime = System.currentTimeMillis() ;
QuickFIXMessageCache cache = new QuickFIXMessageCache() ;
try
{
NIOFIXFileReader reader = new NIOFIXFileReader(cache, new FileInputStream("BigFIX.fix"));
for (;;)
{
FIXMessage message = reader.read();
messagesRead++;
if (messagesRead % 10000 == 0)
{
log.info("Read " + messagesRead) ;