Interface RemoteFile

All Known Implementing Classes:
AgentFile, ServerFile

public interface RemoteFile
Generic interface for any type of remote (in relation to client) file
  • Method Summary

    Modifier and Type
    Method
    Description
    Get file extension.
    Get file modification time.
    Get file name.
    long
    Get file size in bytes.
    boolean
    Check if this file object represents directory.
    boolean
    Check if this file object is a placeholder (does not correspond to actual remote file).
  • Method Details

    • getName

      String getName()
      Get file name.
      Returns:
      file name
    • getExtension

      String getExtension()
      Get file extension.
      Returns:
      file extension
    • getModificationTime

      Date getModificationTime()
      Get file modification time.
      Returns:
      file modification time
    • getSize

      long getSize()
      Get file size in bytes.
      Returns:
      file size in bytes
    • isDirectory

      boolean isDirectory()
      Check if this file object represents directory.
      Returns:
      true if this file object represents directory
    • isPlaceholder

      boolean isPlaceholder()
      Check if this file object is a placeholder (does not correspond to actual remote file).
      Returns:
      true if this file object is a placeholder