org.apache.oodt.cas.filemgr.tools
Class MetadataDumper

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.tools.MetadataDumper

public final class MetadataDumper
extends Object

Version:
$Revision: 12226 $

A simple tool to write out a .met Metadata file for a specified Product.

.
Author:
mattmann

Constructor Summary
MetadataDumper(String fmUrlStr)
           
 
Method Summary
 void dumpMetadata(String productId)
          Dumps the Metadata from the Product identified by the given productId.
 void dumpMetadata(String productId, String outDirPath)
          Dumps the Metadata from the Product identified by the given productId.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataDumper

public MetadataDumper(String fmUrlStr)
               throws InstantiationException
Throws:
InstantiationException
Method Detail

dumpMetadata

public void dumpMetadata(String productId)
Dumps the Metadata from the Product identified by the given productId. The Metadata is written to the local directory ., where this program was invoked from.

Parameters:
productId - The string identifier of the product to dump Metadata from.

dumpMetadata

public void dumpMetadata(String productId,
                         String outDirPath)
Dumps the Metadata from the Product identified by the given productId. The Metadata is written to the specified outDirPath.

Parameters:
productId - The string identifier of the product to dump Metadata from.
outDirPath - The path on the local filesystem to write the Metadata file to.

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception


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