net.sf.logdistiller
Class LogEvent.Factory
java.lang.Object
net.sf.logdistiller.LogEvent.Factory
- Direct Known Subclasses:
- FactoryMultiplexer
- Enclosing class:
- LogEvent
public abstract static class LogEvent.Factory
- extends Object
The base class for LogEvent factories, responsible for parsing an input stream into LogEvent
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEWLINE
public static final String NEWLINE
description
protected final LogType.Description description
logSource
protected final String logSource
LogEvent.Factory
protected LogEvent.Factory(LogType.Description description,
String logSource)
nextEvent
public LogEvent nextEvent()
throws IOException,
ParseException
- gets the next LogEvent.
- Returns:
- LogEvent the new LogEvent read, or
null
if none available any more
- Throws:
IOException
ParseException
pushbackLastEvent
public void pushbackLastEvent()
throws IllegalStateException
- Throws:
IllegalStateException
getDescription
public LogType.Description getDescription()
getLogSource
public String getLogSource()
readNextEvent
protected abstract LogEvent readNextEvent()
throws IOException,
ParseException
- Throws:
IOException
ParseException
Copyright © 2004-2009. All Rights Reserved.