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;