Class FileParser
- java.lang.Object
-
- com.alessiodp.core.common.storage.sql.migrator.FileParser
-
- All Implemented Interfaces:
Comparable<FileParser>
public class FileParser extends Object implements Comparable<FileParser>
-
-
Constructor Summary
Constructors Constructor Description FileParser(@NotNull InputStream inputStream, @NotNull String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FileParser o)voidparse()Parse the filevoidparseName(String name)Parse the file nameStringreadStatement()Read the next statement from the file reader
-
-
-
Constructor Detail
-
FileParser
public FileParser(@NotNull @NotNull InputStream inputStream, @NotNull @NotNull String fileName)
-
-
Method Detail
-
parse
public void parse() throws IOExceptionParse the file- Throws:
IOException- if anything goes wrong with the parsing
-
readStatement
public String readStatement() throws IOException
Read the next statement from the file reader- Returns:
- the next statement
- Throws:
IOException- if anything goes wrong with the reading
-
parseName
public void parseName(String name)
Parse the file name- Parameters:
name- the name to parse
-
compareTo
public int compareTo(FileParser o)
- Specified by:
compareToin interfaceComparable<FileParser>
-
-