public class Importer extends Object
Constructor and Description |
---|
Importer() |
Modifier and Type | Method and Description |
---|---|
static ImportedFile |
importFile(Path path)
Imports given file in the application.
|
static ImportedFile |
importFile(String fileName) |
static boolean |
isImported(Path filePath)
Method serves to detect whether given file is already imported
|
static boolean |
isImported(String fileName)
Method serves to detect whether given file is already imported
shorthand for isImported(Paths.get(fileName))
|
public static boolean isImported(Path filePath)
filePath
- path of file to be checked whether is already imported in the parserpublic static boolean isImported(String fileName)
fileName
- path of file to be checked whether is already imported in the parserpublic static ImportedFile importFile(String fileName) throws IOException
fileName
- IOException
public static ImportedFile importFile(Path path) throws IOException
path
- file to be importedIOException
- when problem occured during importing fileCopyright © 2013. All Rights Reserved.