org.roverguild.pdsutil
Class PDSInfo

java.lang.Object
  |
  +--org.roverguild.pdsutil.PDSInfo

public class PDSInfo
extends java.lang.Object

This class uses the PDSFilenameTranslator class to provide a human readable summary of the metadata contained within a PDS file provided as a command line argument.

Version:
0.1 / 2004-08-15
Author:
Rupert Scammell
Project site: PDS Utilities Project Site

Constructor Summary
PDSInfo()
           
 
Method Summary
static java.lang.String formatData(java.lang.String fieldName, java.lang.String transData)
          A utility method used to format field names and translated data into tidy, printable strings.
static void main(java.lang.String[] args)
          Main method.
static java.lang.String makeSeparatorLine(int length, char chr)
          Make a separator line of a specified length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDSInfo

public PDSInfo()
Method Detail

formatData

public static java.lang.String formatData(java.lang.String fieldName,
                                          java.lang.String transData)
A utility method used to format field names and translated data into tidy, printable strings.

Parameters:
fieldName - a String containing the PDS field name
transData - a String containing the translated PDS data
Returns:
A string containing a formatted version of the field name and data.

makeSeparatorLine

public static java.lang.String makeSeparatorLine(int length,
                                                 char chr)
Make a separator line of a specified length.

Parameters:
length - Length of the separator line to create.
chr - The character to use in creating the separator.
Returns:
a String containing a separator line of the desired length.

main

public static void main(java.lang.String[] args)
Main method.

Parameters:
args - Arguments from the command line, specifically, the PDS filename string to be translated.