Interface IIFile

All Superinterfaces:
IIResource
All Known Implementing Classes:
EclipseIFile, EclipseIPathFile, JavaFile

public interface IIFile extends IIResource
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 Details

    • openInputStream

      InputStream openInputStream(Object monitor) throws IOException
      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.