Package com.iizix.app.builder
Interface IIFile
- All Superinterfaces:
IIResource
- All Known Implementing Classes:
EclipseIFile
,EclipseIPathFile
,JavaFile
The interface to an interface of a file. The file is either a plain Java File or an Eclipse IFile or IPath.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the file size.long
Gets the file modified time in milliseconds since the epoch.openInputStream
(Object monitor) Opens the input stream to the file.Methods inherited from interface com.iizix.app.builder.IIResource
equals, getFile, getFullPath, getName, isDirectory
Method Details
openInputStream
Opens the input stream to the file.- Parameters:
monitor
- The IProgressMonitor, null for none.- Returns:
- The input stream.
- Throws:
IOException
- For read errors.
getFileSize
long getFileSize()Gets the file size.getLastModified
long getLastModified()Gets the file modified time in milliseconds since the epoch.- Returns:
- Milliseconds since 1st January 1970, 0:00.