org.enableit.db.darrt
Class DataParserFactory

java.lang.Object
  |
  +--org.enableit.db.darrt.DataParserFactory

public class DataParserFactory
extends java.lang.Object

Author:
tim.stephenson

Constructor Summary
DataParserFactory()
           
 
Method Summary
static org.enableit.db.darrt.DataParser getInstance(java.io.File file)
          Returns a procesor based on the file to process.
static org.enableit.db.darrt.DataParser getInstance(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataParserFactory

public DataParserFactory()
Method Detail

getInstance

public static org.enableit.db.darrt.DataParser getInstance(java.io.File file)
Returns a procesor based on the file to process.

Implementation Note: The processor required is determined by the file's extension.

Parameters:
file - File to process.
Returns:
An instance of FileProcessor capable of processing the specified file.
Throws:
java.lang.IllegalArgumentException - If file is null or no processor is known to handle this file type.

getInstance

public static org.enableit.db.darrt.DataParser getInstance(java.lang.String fileName)
                                                    throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.