RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.util.parser.TextFileParser Class Referenceabstract
Inheritance diagram for com.osroyale.util.parser.TextFileParser:
Collaboration diagram for com.osroyale.util.parser.TextFileParser:

Public Member Functions

 TextFileParser (String path)
 TextFileParser (String path, boolean log)
abstract void parse (BufferedReader reader) throws IOException
void deserialize ()
Public Member Functions inherited from com.osroyale.util.parser.GenericParser
 GenericParser (String path, String extension, boolean log)
void onRead ()
final int getIndex ()

Additional Inherited Members

Protected Attributes inherited from com.osroyale.util.parser.GenericParser
final Path path
int index

Detailed Description

A simple parser designed for text files.

Author
Seven

Definition at line 41 of file TextFileParser.java.

Constructor & Destructor Documentation

◆ TextFileParser() [1/2]

com.osroyale.util.parser.TextFileParser.TextFileParser ( String path)
inline

Creates a new TextFileParser.

Parameters
pathThe path of the file to parse.

Definition at line 49 of file TextFileParser.java.

◆ TextFileParser() [2/2]

com.osroyale.util.parser.TextFileParser.TextFileParser ( String path,
boolean log )
inline

Creates a new TextFileParser.

Parameters
pathThe path of the file to parse.
logThe flag that denotes to log messages.

Definition at line 62 of file TextFileParser.java.

Member Function Documentation

◆ deserialize()

void com.osroyale.util.parser.TextFileParser.deserialize ( )
inline

The method that deserializes the file information.

Reimplemented from com.osroyale.util.parser.GenericParser.

Definition at line 75 of file TextFileParser.java.

◆ parse()

abstract void com.osroyale.util.parser.TextFileParser.parse ( BufferedReader reader) throws IOException
abstract

The method called when the file is being parsed.

Parameters
readerThe underlying parser.

The documentation for this class was generated from the following file: