Constructor and Description |
---|
FileInfo(Path path,
String fileType,
ReloadableFile reloadableFile)
Creates a new FileInfo object
|
Modifier and Type | Method and Description |
---|---|
String |
getFileType()
gets file type or name of file
|
String |
getID()
Gets id of file-info
|
Path |
getPath()
gets directory path of fileInfo
|
ReloadableFile |
getReloadableFile()
gets the reloadable files to which the registered file belongs
|
public FileInfo(Path path, String fileType, ReloadableFile reloadableFile)
path
- path of DIRECTORY (not file itself!!!!) where file to be watched is locatedfileType
- the type of file the file is, can be name or extension or both
(Ex: "test", "txt", "test.txt" all work)reloadableFile
- interface that includes update methodpublic Path getPath()
public String getFileType()
public ReloadableFile getReloadableFile()
Copyright © 2016. All rights reserved.