Assert.isNotNull(input, "input"); //$NON-NLS-1$
Assert.isNotNull(collector, "collector"); //$NON-NLS-1$
Assert.isTrue(isConfigured(), "Dialect should be configured by now"); //$NON-NLS-1$
try {
LogEntry currentEntry = null;
IHasEncoding enc = (IHasEncoding) log.getAdapter(IHasEncoding.class);
IHasLocale loc = (IHasLocale) log.getAdapter(IHasLocale.class);
if (loc != null) {
// Apply the locale
getPatternTranslator().applyLocale(loc.getLocale(), rules);
}
IHasTimeZone tz = (IHasTimeZone) log.getAdapter(IHasTimeZone.class);
if (tz != null) {
// Apply the timezone
getPatternTranslator().applyTimeZone(tz.getTimeZone(), rules);
}
LineIterator iter = IOUtils.lineIterator(input, enc.getEncoding());
int minLinesPerEntry = getPatternTranslator().getMinLinesPerEntry();
int lineNo = 0;
int moreLinesToCome = 0;
try {
String line = null;