Interface LocalSourceFile

All Known Implementing Classes:
FileSystemFile, InMemorySourceFile

public interface LocalSourceFile
  • Method Details

    • getName

      String getName()
    • getLength

      long getLength()
    • getInputStream

      InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getPermissions

      int getPermissions() throws IOException
      Returns the permissions for the underlying file
      Returns:
      permissions e.g. 0644
      Throws:
      IOException
    • isFile

      boolean isFile()
    • isDirectory

      boolean isDirectory()
    • getChildren

      Iterable<? extends LocalSourceFile> getChildren(LocalFileFilter filter) throws IOException
      Throws:
      IOException
    • providesAtimeMtime

      boolean providesAtimeMtime()
    • getLastAccessTime

      long getLastAccessTime() throws IOException
      Returns last access time for the underlying file.
      Returns:
      time in seconds since Unix epoch
      Throws:
      IOException
    • getLastModifiedTime

      long getLastModifiedTime() throws IOException
      Returns last access time for the underlying file.
      Returns:
      time in seconds since Unix epoch
      Throws:
      IOException