Interface BasicFileStore
- All Known Subinterfaces:
CSVFileStore
- All Known Implementing Classes:
BasicFileStoreConnector
,BasicFolderConnector
,CSVFileStoreConnector
,DataFolderConnector
public interface BasicFileStore
BasicFileStore defines the interface to access a file.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the creation date for the file.getFile()
Return the Java File object that provides access to the file.long
Return the number of bytes in the fileReturn the name of the file to read.Return the last access date for the file.Return the last update date for the file.
-
Method Details
-
getFile
Return the Java File object that provides access to the file.- Returns:
- File object
- Throws:
FileException
- unable to locate the file
-
getFileLength
Return the number of bytes in the file- Returns:
- number
- Throws:
FileException
- unable to locate the file
-
getFileName
Return the name of the file to read.- Returns:
- file name
- Throws:
FileException
- there is a problem accessing the fileFileReadException
- - the file name is null, the file does not exist, or is a directory or is not readable.
-
getCreationDate
Return the creation date for the file.- Returns:
- Date object
- Throws:
FileException
- there is a problem accessing the fileFileReadException
- - the file name is null, the file does not exist, or is a directory or is not readable.
-
getLastUpdateDate
Return the last update date for the file.- Returns:
- Date object
- Throws:
FileException
- there is a problem accessing the fileFileReadException
- - the file name is null, the file does not exist, or is a directory or is not readable.
-
getLastAccessDate
Return the last access date for the file.- Returns:
- Date object
- Throws:
FileException
- there is a problem accessing the fileFileReadException
- - the file name is null, the file does not exist, or is a directory or is not readable.
-