gov.nasa.pds.transport.utils
Class PDS2FName
java.lang.Object
gov.nasa.pds.transport.utils.PDS2FName
public class PDS2FName
- extends Object
PDS2FName
getNames reads an ODL (label file) and breaks out the file names referenced in
the file. Tests the existence of the referenced file names. Outputs this
file name and those found in the label, removing any duplicates.
getDirectory returns the entire directory and also calls getNames to find any
references found in other directories. It then outputs a list of filenames
removing any duplicates.
Returns: List of file names separated by spaces, null if decoding error or file does not exist.
- Author:
- G. Crichton
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileHandler
public static final int fileHandler
- See Also:
- Constant Field Values
dirHandler
public static final int dirHandler
- See Also:
- Constant Field Values
labelHandler
public static final int labelHandler
- See Also:
- Constant Field Values
recursiveCall
public static final int recursiveCall
- See Also:
- Constant Field Values
notLabel
public static final int notLabel
- See Also:
- Constant Field Values
PDS2FName
public PDS2FName()
getNames
public static String getNames(File labelFile,
String filenames)
- Entry for ZipFileHandler and ZipNFileHandler which returns list of files
belonging to the product label file.
- Parameters:
labelFile
- Product label file.filenames
- List of filenames included in the product.
getNames
public static String getNames(File labelFile,
String filenames,
int caller,
StringBuffer listing,
boolean validLabelFile)
- Returns the filenames in the product and optionally listing of the files scanned.
- Parameters:
labelFile
- Product label file.filenames
- List of filenames already found.caller
- Controls execution code branches.list
- Listing of files scanned if not null.
- Returns:
- List of filenames discovered appended to filenames list.
getTESNames
public static String getTESNames(File TESFile,
String filenames)
getDirectory
public static String getDirectory(File dirFile,
String filenames)
main
public static void main(String[] argv)
Copyright © 2010–2014 Planetary Data System. All rights reserved.