HiRISE

HiRISE.HiReport.util
Class PvlHighlighter

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

public class PvlHighlighter
extends Object

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

Version:
1.2
Author:
guym

Field Summary
static String ID
          CVS ID
protected  File label
          Reference to the Log File
 
Constructor Summary
PvlHighlighter(File label)
          Create a new highlighter for the given PVL file.
 
Method Summary
 int highlight(Writer writer)
          Highlight the label file and output 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

label

protected File label
Reference to the Log File

Constructor Detail

PvlHighlighter

public PvlHighlighter(File label)
Create a new highlighter for the given PVL file.

Parameters:
label - Detached label file
Method Detail

highlight

public int highlight(Writer writer)
              throws IOException
Highlight the label file and output 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