org.ourgrid.common.spec.grammar.io
Class GalsGrammarReader
java.lang.Object
org.ourgrid.common.spec.grammar.io.GalsGrammarReader
- All Implemented Interfaces:
- GrammarReader
public class GalsGrammarReader
- extends java.lang.Object
- implements GrammarReader
This is a GrammarReader entity that knows how to read a file generated by the
Gals software (version 2003.10.03)
- See Also:
- http://sourceforge.net/projects/gals/
Method Summary |
Grammar |
read(java.io.File grammarFile,
Grammar toFillGrammar)
Read a gammar description file from a determined format and returns a
Grammar object after the process |
Grammar |
read(java.io.InputStream stream,
Grammar toFillGrammar)
Read a gammar description file from a determined format and returns a
Grammar object after the process |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GalsGrammarReader
public GalsGrammarReader()
read
public Grammar read(java.io.File grammarFile,
Grammar toFillGrammar)
throws MalformedGrammarException,
java.io.FileNotFoundException,
java.io.IOException
- Description copied from interface:
GrammarReader
- Read a gammar description file from a determined format and returns a
Grammar object after the process
- Specified by:
read
in interface GrammarReader
- Parameters:
grammarFile
- The file where the grammar is described.toFillGrammar
- The object grammar that will be filled with the
informations from the file.
- Returns:
- A Grammar object
- Throws:
MalformedGrammarException
java.io.FileNotFoundException
java.io.IOException
- See Also:
GrammarReader.read(java.io.File,
org.ourgrid.common.spec.grammar.Grammar)
read
public Grammar read(java.io.InputStream stream,
Grammar toFillGrammar)
throws MalformedGrammarException,
java.io.FileNotFoundException,
java.io.IOException
- Description copied from interface:
GrammarReader
- Read a gammar description file from a determined format and returns a
Grammar object after the process
- Specified by:
read
in interface GrammarReader
- Parameters:
stream
- The stream that contains the description of the grammartoFillGrammar
- The object grammar that will be filled with the
informations from the file.
- Returns:
- A Grammar object
- Throws:
MalformedGrammarException
java.io.FileNotFoundException
java.io.IOException
- See Also:
GrammarReader.read(java.io.InputStream,
org.ourgrid.common.spec.grammar.Grammar)