|
RuneHive-Game
|
A simple parser designed for text files. More...
Public Member Functions | |
| void | deserialize () |
| The method that deserializes the file information. | |
| abstract void | parse (BufferedReader reader) throws IOException |
| The method called when the file is being parsed. | |
| TextFileParser (String path) | |
Creates a new TextFileParser. | |
| TextFileParser (String path, boolean log) | |
Creates a new TextFileParser. | |
| Public Member Functions inherited from com.runehive.util.parser.GenericParser | |
| GenericParser (String path, String extension, boolean log) | |
Creates a new GenericParser. | |
| final int | getIndex () |
| Gets the current index of the line being parsed. | |
| void | onRead () |
| The method called after all the data has been parsed. | |
| void | run () |
| String | toString () |
Additional Inherited Members | |
| Protected Attributes inherited from com.runehive.util.parser.GenericParser | |
| int | index |
| The index of the current line being parsed. | |
| final Path | path |
| The path of the file to parse. | |
A simple parser designed for text files.
Definition at line 13 of file TextFileParser.java.
| com.runehive.util.parser.TextFileParser.TextFileParser | ( | String | path | ) |
Creates a new TextFileParser.
| path | The path of the file to parse. |
Definition at line 21 of file TextFileParser.java.
References com.runehive.util.parser.GenericParser.path.
| com.runehive.util.parser.TextFileParser.TextFileParser | ( | String | path, |
| boolean | log ) |
Creates a new TextFileParser.
| path | The path of the file to parse. |
| log | The flag that denotes to log messages. |
Definition at line 34 of file TextFileParser.java.
References com.runehive.util.parser.GenericParser.log, and com.runehive.util.parser.GenericParser.path.
| void com.runehive.util.parser.TextFileParser.deserialize | ( | ) |
The method that deserializes the file information.
Reimplemented from com.runehive.util.parser.GenericParser.
Definition at line 47 of file TextFileParser.java.
References com.runehive.util.parser.GenericParser.index, parse(), and com.runehive.util.parser.GenericParser.path.
|
abstract |
The method called when the file is being parsed.
| reader | The underlying parser. |
Referenced by deserialize().