HiRISE

HiRISE.HiReport.util
Class LogHighlighter

java.lang.Object
  extended by HiRISE.HiReport.util.LogHighlighter

public class LogHighlighter
extends Object

Formats a Conductor log file using XHTML syntax, sending the result to a Writer output.

Version:
1.1
Author:
guym

Field Summary
static String DELIMITER_FAILURE
          Delimiter for a failure
static String DELIMITER_PROCEDURE
          Delimiter for a procedure
static String DELIMITER_SOURCE
          Delimiter for a source file
static String DELIMITER_STDERR
          Delimiter for a stderr block
static String DELIMITER_STDOUT
          Delimiter for a stdout block
static String ID
          CVS ID
protected  File logFile
          Reference to the Log File
 
Constructor Summary
LogHighlighter(File logFile)
          Create a new highlighter for the given log file.
 
Method Summary
 int highlight(Writer writer)
          Highlight the log file and ouput result to the writer.
static void main(String[] args)
          Command line interface, highlight each file and output to stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

DELIMITER_STDOUT

public static final String DELIMITER_STDOUT
Delimiter for a stdout block

See Also:
Constant Field Values

DELIMITER_STDERR

public static final String DELIMITER_STDERR
Delimiter for a stderr block

See Also:
Constant Field Values

DELIMITER_PROCEDURE

public static final String DELIMITER_PROCEDURE
Delimiter for a procedure

See Also:
Constant Field Values

DELIMITER_SOURCE

public static final String DELIMITER_SOURCE
Delimiter for a source file

See Also:
Constant Field Values

DELIMITER_FAILURE

public static final String DELIMITER_FAILURE
Delimiter for a failure

See Also:
Constant Field Values

logFile

protected File logFile
Reference to the Log File

Constructor Detail

LogHighlighter

public LogHighlighter(File logFile)
Create a new highlighter for the given log file.

Parameters:
logFile - Conductor output file
Method Detail

highlight

public int highlight(Writer writer)
              throws IOException
Highlight the log file and ouput result to the writer.

Parameters:
writer - Output
Returns:
Number of lines read
Throws:
IOException - Problem parsing log file

main

public static void main(String[] args)
                 throws Exception
Command line interface, highlight each file and output to stdout.

Parameters:
args - List of log files
Throws:
Exception - Could not highlight files

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona