Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.finj
Interface RemoteFile  view RemoteFile download RemoteFile.java


public interface RemoteFile

A java.io.File located on a distant computer.

Version:
$Id$

Method Summary
 boolean canRead()
          Returns true if file can be read.
 java.lang.String getName()
          Returns the name of the file.
 java.lang.String getParent()
          Returns parent path if it exists, null if not.
 java.lang.String getPath()
          Returns path to this file on the distant computer.
 boolean isDirectory()
          Returns true if path points to a directory, false else.
 boolean isFile()
          Returns true if path points to a file, false else.
 boolean isHidden()
          Tests whether the file named by this abstract pathname is a hidden file.
 long lastModified()
          Returns time of last modification as a long value.
 long size()
          Returns the length of the file in bytes.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the file.

Since:
v1.0

getParent

public java.lang.String getParent()
Returns parent path if it exists, null if not.

Since:
v1.0

getPath

public java.lang.String getPath()
Returns path to this file on the distant computer.

Since:
v1.0

canRead

public boolean canRead()
Returns true if file can be read.

Since:
v1.0

isDirectory

public boolean isDirectory()
Returns true if path points to a directory, false else.

Since:
v1.0

isFile

public boolean isFile()
Returns true if path points to a file, false else.

Since:
v1.0

isHidden

public boolean isHidden()
Tests whether the file named by this abstract pathname is a hidden file.

Since:
v1.0

lastModified

public long lastModified()
Returns time of last modification as a long value.

Since:
v1.0

size

public long size()
Returns the length of the file in bytes.

Since:
v1.0