com.nonesole.persistence.file
Class TransformerFactory

java.lang.Object
  extended by com.nonesole.persistence.file.TransformerFactory

public class TransformerFactory
extends java.lang.Object

Transformer Factory

Version:
1.0 - build in 2009-07-26
Author:
JACK LEE

Field Summary
static int PROPERTIES_FILE
           
static java.lang.String PROPERTIES_FILE_END
           
static int SERIALIZATION_FILE
           
static java.lang.String SERIALIZATION_FILE_END
           
static int TXT_FILE
           
static java.lang.String TXT_FILE_END
           
static int XML_FILE
           
static java.lang.String XML_FILE_END
           
 
Method Summary
 IFileTransformer getFileTransformer(int filetype)
          Get some file transformer by file type(Integer format).
 IFileTransformer getFileTransformer(java.lang.String filePath)
          Get some file transformer by file type(String format).
static TransformerFactory getInstance()
          Get object of factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_FILE

public static final int PROPERTIES_FILE
See Also:
Constant Field Values

TXT_FILE

public static final int TXT_FILE
See Also:
Constant Field Values

XML_FILE

public static final int XML_FILE
See Also:
Constant Field Values

SERIALIZATION_FILE

public static final int SERIALIZATION_FILE
See Also:
Constant Field Values

PROPERTIES_FILE_END

public static final java.lang.String PROPERTIES_FILE_END
See Also:
Constant Field Values

TXT_FILE_END

public static final java.lang.String TXT_FILE_END
See Also:
Constant Field Values

XML_FILE_END

public static final java.lang.String XML_FILE_END
See Also:
Constant Field Values

SERIALIZATION_FILE_END

public static final java.lang.String SERIALIZATION_FILE_END
See Also:
Constant Field Values
Method Detail

getInstance

public static TransformerFactory getInstance()
Get object of factory.

Returns:
TransformerFactory

getFileTransformer

public IFileTransformer getFileTransformer(int filetype)
                                    throws OperationsException
Get some file transformer by file type(Integer format).

Parameters:
file - type
Returns:
object of IFileTransformer
Throws:
OperationsException

getFileTransformer

public IFileTransformer getFileTransformer(java.lang.String filePath)
                                    throws OperationsException
Get some file transformer by file type(String format).

Parameters:
file - type(String)
Returns:
object of IFileTransformer
Throws:
OperationsException