1package com.runehive.util.parser;
3import org.apache.logging.log4j.LogManager;
4import org.apache.logging.log4j.Logger;
6import java.nio.file.Path;
7import java.nio.file.Paths;
33 private final boolean log;
85 return String.format(
"Loaded: %d %s.",
index,
path.getFileName().toString().replace(
"_",
" ").replace(
extension,
""));
Represents a single path in the path finding system.
int index
The index of the current line being parsed.
GenericParser(String path, String extension, boolean log)
Creates a new GenericParser.
final int getIndex()
Gets the current index of the line being parsed.
static final Logger logger
final String extension
The file name extension to parse.
final Path path
The path of the file to parse.
abstract void deserialize()
The method that deserializes the file information.
void onRead()
The method called after all the data has been parsed.