jpl.pds.parser
Class ReadLabelFile

java.lang.Object
  extended by jpl.pds.parser.ReadLabelFile

public class ReadLabelFile
extends Object

Read product label file into a StringBuffer. If any STRUCTURE pointer files are encountered then read pointer file into the StringBuffer. Look for included file in the current directrory and its parent directory. If not found then look in parent directory and LABEL subdirectory. If not found keep moving up the directory and looking in LABEL subdirectory.


Constructor Summary
ReadLabelFile(StringBuffer mergedFile, RunLog runLog)
          Create ReadLabelFile and save the StringBuffer for reading the file into.
 
Method Summary
 void read(String filename)
          Read the file into the StringBuffer and merge any STRUCTURE pointer files found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadLabelFile

public ReadLabelFile(StringBuffer mergedFile,
                     RunLog runLog)
Create ReadLabelFile and save the StringBuffer for reading the file into.

Parameters:
mergedFile - StringBuffer to hold the merged files.
runLog - RunLog object used for writing messages to cmd window and output log.
Method Detail

read

public final void read(String filename)
                throws IOException
Read the file into the StringBuffer and merge any STRUCTURE pointer files found.

Parameters:
filename - Filename to read.
Throws:
IOException - if read error or file not found.


Copyright © 2005-2012 Planetary Data System. All Rights Reserved.