return new CharBufferWrapper(message);
public static void main(String[] args) throws Exception { if (args.length != 1) { System.out.println("Please supply a path to an mbox file to parse"); } final File mbox = new File(args[0]); long start = System.currentTimeMillis(); int count = 0; for (CharBufferWrapper message : MboxIterator.fromFile(mbox).charset(ENCODER.charset()).build()) { // saveMessageToFile(count, buf); System.out.println(messageSummary(message.asInputStream(ENCODER.charset()))); count++; } System.out.println("Found " + count + " messages"); long end = System.currentTimeMillis(); System.out.println("Done in: " + (end - start) + " milis"); }
} else { String raw = mboxIterator.next().toString(); count++;
} else { String raw = mboxIterator.next().toString(); count++;