net.sf.parser4j.parser.service.data
Class ParserDataIO

java.lang.Object
  extended by net.sf.parser4j.parser.service.data.ParserDataIO

public final class ParserDataIO
extends java.lang.Object

ParserData input/output in file

Author:
luc peuvrier

Method Summary
static ParserDataIO getInstance()
           
 ParserData readFromClassPackage(java.lang.Class<?> clazz, java.lang.String resourceName)
           
 ParserData readFromClassPath(java.lang.String path)
           
 ParserData readFromFile(java.io.File parserDataFile)
           
 void writeToFile(java.io.File parserDataOutputFile, ParserData parserData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ParserDataIO getInstance()

readFromClassPackage

public ParserData readFromClassPackage(java.lang.Class<?> clazz,
                                       java.lang.String resourceName)
                                throws ParserException
Throws:
ParserException

readFromClassPath

public ParserData readFromClassPath(java.lang.String path)
                             throws ParserException
Throws:
ParserException

readFromFile

public ParserData readFromFile(java.io.File parserDataFile)
                        throws ParserException
Throws:
ParserException

writeToFile

public void writeToFile(java.io.File parserDataOutputFile,
                        ParserData parserData)
                 throws ParserException
Throws:
ParserException


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.