org.apache.oodt.product.handlers.ofsn.util
Class OFSNUtils

java.lang.Object
  extended by org.apache.oodt.product.handlers.ofsn.util.OFSNUtils
All Implemented Interfaces:
OFSNMetKeys, OFSNXMLMetKeys, OODTMetKeys

public final class OFSNUtils
extends Object
implements OODTMetKeys, OFSNXMLMetKeys, OFSNMetKeys

Version:
$Revision$
Author:
mattmann

Field Summary
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OODTMetKeys
XMLQUERY_QUERYELEM_ROLE_ELEM
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNXMLMetKeys
DIR_ENTRY_TAG, DIR_LISTING_NS, DIR_RESULT_TAG, FILE_SIZE_TAG, OFSN_TAG, XML_MIME_TYPE
 
Fields inherited from interface org.apache.oodt.product.handlers.ofsn.metadata.OFSNMetKeys
GET_CMD, LISTING_CMD, OFSN_COMPUTE_DIR_SIZE, OFSN_COMPUTE_FILE_SIZE, OFSN_XML_CONF_FILE_KEY
 
Constructor Summary
OFSNUtils()
           
 
Method Summary
static File buildZipFile(String zipFileFullPath, File[] files)
           
static String extractFieldFromQuery(XMLQuery query, String name)
           
static Document getOFSNDoc(List<File> fileList, OFSNHandlerConfig cfg, String productRoot, boolean showDirSize, boolean showFileSize)
           
static String relativeize(String path, String productRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OFSNUtils

public OFSNUtils()
Method Detail

extractFieldFromQuery

public static String extractFieldFromQuery(XMLQuery query,
                                           String name)

getOFSNDoc

public static Document getOFSNDoc(List<File> fileList,
                                  OFSNHandlerConfig cfg,
                                  String productRoot,
                                  boolean showDirSize,
                                  boolean showFileSize)

relativeize

public static String relativeize(String path,
                                 String productRoot)

buildZipFile

public static File buildZipFile(String zipFileFullPath,
                                File[] files)


Copyright © 1999-2013 Apache OODT. All Rights Reserved.