gov.nasa.pds.transform
Class TransformerFactory

java.lang.Object
  extended by gov.nasa.pds.transform.TransformerFactory

public class TransformerFactory
extends Object

Transformer Factory class that determines whether to transform a PDS3 or PDS4 product.

Author:
mcayanan

Method Summary
static TransformerFactory getInstance()
          Gets an instance of the factory.
 PdsTransformer newInstance(File label)
          Gets an instance of a Transformer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TransformerFactory getInstance()
Gets an instance of the factory.


newInstance

public PdsTransformer newInstance(File label)
                           throws TransformException
Gets an instance of a Transformer.

Parameters:
label - A PDS3 or PDS4 label. Filename must end in 'xml' or 'lbl'.
Returns:
The appropriate Transformer object.
Throws:
TransformException - If the label filename does not end in 'xml' or 'lbl', case-insensitive.


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.