org.ceryle.util.log
Class LogParser

java.lang.Object
  extended by org.ceryle.util.log.LogParser

public class LogParser
extends Object

A parser for the Ceryle log notation.

The notation is very simple:

    [delim] [code] SP [timestamp] SP [message]
 
 where [delim] is org.ceryle.util.log.Logger.RDELIM, and SP is a single
 space character. The timestamp is in the format "yyyy-mm-dd'T'hh:mm:ss".
 The [code] is a single character indicating the message type 
 (see Logger member vars starting with "LOG_").

Since:
JDK1.3
Version:
$Id: LogParser.java,v 3.5 2007-06-15 12:10:02 altheim Exp $
Author:
Murray Altheim

Constructor Summary
LogParser(MessageHandler messagehandler)
           
 
Method Summary
 Iterator parse(TypedInputSource source)
          Parses the file provided by the TypedInputSource source, generating messages that are used to create the individual LogEntry objects, returned via an Iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogParser

public LogParser(MessageHandler messagehandler)
Method Detail

parse

public Iterator parse(TypedInputSource source)
               throws ParseException
Parses the file provided by the TypedInputSource source, generating messages that are used to create the individual LogEntry objects, returned via an Iterator.

Throws:
ParseException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.