liuslite.parser
Class ParserFactory

java.lang.Object
  extended by liuslite.parser.ParserFactory

public class ParserFactory
extends java.lang.Object

Factory class. Build parser from xml config file.

Author:
Rida Benjelloun (ridabenjelloun@apache.org)

Constructor Summary
ParserFactory()
           
 
Method Summary
static Parser getParser(java.io.File file, LiusConfig tc)
          Build parser from file and Lius config object
static Parser getParser(java.io.File file, java.lang.String tcPath)
          Build parser from file and Lius config file path
static Parser getParser(java.lang.String str, LiusConfig tc)
          Build parser from string file path and Lius config object
static Parser getParser(java.lang.String str, java.lang.String tcPath)
          Build parser from string file path and Lius config file path
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserFactory

public ParserFactory()
Method Detail

getParser

public static Parser getParser(java.io.File file,
                               LiusConfig tc)
                        throws net.hedges.mimeinfo.MimeInfoException,
                               java.io.IOException,
                               LiusException
Build parser from file and Lius config object

Throws:
net.hedges.mimeinfo.MimeInfoException
java.io.IOException
LiusException

getParser

public static Parser getParser(java.lang.String str,
                               LiusConfig tc)
                        throws net.hedges.mimeinfo.MimeInfoException,
                               java.io.IOException,
                               LiusException
Build parser from string file path and Lius config object

Throws:
net.hedges.mimeinfo.MimeInfoException
java.io.IOException
LiusException

getParser

public static Parser getParser(java.lang.String str,
                               java.lang.String tcPath)
                        throws net.hedges.mimeinfo.MimeInfoException,
                               java.io.IOException,
                               LiusException
Build parser from string file path and Lius config file path

Throws:
net.hedges.mimeinfo.MimeInfoException
java.io.IOException
LiusException

getParser

public static Parser getParser(java.io.File file,
                               java.lang.String tcPath)
                        throws net.hedges.mimeinfo.MimeInfoException,
                               java.io.IOException,
                               LiusException
Build parser from file and Lius config file path

Throws:
net.hedges.mimeinfo.MimeInfoException
java.io.IOException
LiusException