net.sf.logdistiller
Class LogEvent.Factory

java.lang.Object
  extended by 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 LogEvents.


Field Summary
protected  LogType.Description description
           
protected  String logSource
           
static String NEWLINE
           
 
Constructor Summary
protected LogEvent.Factory(LogType.Description description, String logSource)
           
 
Method Summary
 LogType.Description getDescription()
           
 String getLogSource()
           
 LogEvent nextEvent()
          gets the next LogEvent.
 void pushbackLastEvent()
           
protected abstract  LogEvent readNextEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

public static final String NEWLINE

description

protected final LogType.Description description

logSource

protected final String logSource
Constructor Detail

LogEvent.Factory

protected LogEvent.Factory(LogType.Description description,
                           String logSource)
Method Detail

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.