|
org.eclipse.rse.subsystems.files.core.servicesubsystem
Class AbstractRemoteFile
java.lang.Object
org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
-
All Implemented Interfaces:
-
Comparable,
IAdaptable,
ISchedulingRule,
ISystemContainer,
IRemoteContainer,
IRemotePropertyHolder,
IRemoteFile
-
public abstract class AbstractRemoteFile
- extends
RemoteFile
Methods inherited from class org.eclipse.rse.subsystems.files.core.subsystems.
RemoteFile
|
contains,
containsFilterKey,
copyContentsTo,
equals,
getAbsolutePathPlusConnection,
getAdapter,
getAllFilterStrings,
getComment,
getContents,
getContents,
getContext,
getEncoding,
getExtension,
getFile,
getFilterString,
getHostName,
getLastModifiedDate,
getLineSeparator,
getParentRemoteFile,
getParentRemoteFileSubSystemConfiguration,
getPermissions,
getProperties,
getProperty,
getSeparator,
getSeparatorChar,
hasContents,
hasContents,
isAncestorOf,
isArchive,
isBinary,
isConflicting,
isDescendantOf,
isExecutable,
isLink,
isPropertyStale,
isStale,
isText,
isUnix,
markAllPropertiesStale,
markPropertyStale,
markStale,
markStale,
replaceContent,
setContents,
setEncoding,
setFile,
setFilterString,
setIsContainer,
setLabel,
setParentRemoteFile,
setProperties,
setProperty,
toString
|
_hostFile
protected
IHostFile _hostFile
_subSystem
protected
FileServiceSubSystem _subSystem
_classiciation
protected
String _classiciation
AbstractRemoteFile
public AbstractRemoteFile(
FileServiceSubSystem subSystem,
IRemoteFileContext context,
IRemoteFile parent,
IHostFile hostFile)
getParentRemoteFileSubSystem
public
IRemoteFileSubSystem getParentRemoteFileSubSystem()
-
Description copied from class:
RemoteFile
- Return the parent subsystem
-
-
Specified by:
-
getParentRemoteFileSubSystem
in interface
IRemoteFile
-
Overrides:
-
getParentRemoteFileSubSystem
in class
RemoteFile
-
-
Returns:
- the Subsystem holding this file.
getHost
public
IHost getHost()
-
Description copied from class:
RemoteFile
- Return the connection this remote file is from.
-
-
Specified by:
-
getHost
in interface
IRemoteFile
-
Overrides:
-
getHost
in class
RemoteFile
-
getAbsolutePath
public
String getAbsolutePath()
-
Description copied from interface:
IRemoteFile
- Get fully qualified name: root plus path plus name. No connection name.
-
-
Returns:
- the fully qualified path for uniquely addressing this file
on the remote host. Never returns
null .
getLabel
public
String getLabel()
-
Description copied from interface:
IRemoteFile
- Get the display name for this file. By default, this should be the same as the name
If this object represents only a root drive, this is the same as getRoot().
-
-
Specified by:
-
getLabel
in interface
IRemoteFile
-
Overrides:
-
getLabel
in class
RemoteFile
-
-
See Also:
-
IRemoteFile.getLabel()
getName
public
String getName()
-
Description copied from interface:
IRemoteFile
- Get unqualified file name. No root and no path.
If this object represents only a root drive, this is the same as getRoot().
-
getParentPath
public
String getParentPath()
-
Description copied from interface:
IRemoteFile
- Get fully qualified path and name of folder containing this file or folder.
Returns the root and path. No file name, and no ending separator.
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext results in c:\folder1\folder2
-
isRoot
public boolean isRoot()
-
Description copied from interface:
IRemoteFile
- Returns true if this represents a root folder (eg: c:\\ or /).
-
isDirectory
public boolean isDirectory()
-
Description copied from interface:
IRemoteFile
- Returns true if this represents a folder (eg: c:\\folder)
-
isFile
public boolean isFile()
-
Description copied from interface:
IRemoteFile
- Returns true if this represents a file, versus a root or folder
-
exists
public boolean exists()
-
Description copied from interface:
IRemoteFile
- Returns true if this folder or file actually exists.
-
getLastModified
public long getLastModified()
-
Description copied from interface:
IRemoteFile
- Returns the time (in milliseconds since epoch) this file was last modified.
-
getLength
public long getLength()
-
Description copied from interface:
IRemoteFile
- Returns the length, in bytes, of this file.
-
compareTo
public int compareTo(
Object other)
throws
ClassCastException
-
Description copied from class:
RemoteFile
- Compare one remote file to another. This enables us to sort the files so they
are shown folders-first, and in alphabetical order.
-
-
Specified by:
-
compareTo
in interface
Comparable
-
Specified by:
-
compareTo
in interface
IRemoteFile
-
Overrides:
-
compareTo
in class
RemoteFile
-
-
Throws:
-
ClassCastException
showBriefPropertySet
public boolean showBriefPropertySet()
-
Description copied from interface:
IRemoteFile
- Querying properties for the property sheet can be expensive on some operating systems.
By default all properties are shown on the property sheet for this object, unless true
is returned from this query, in which only a couple properties are shown.
-
getParentNoRoot
public
String getParentNoRoot()
-
Deprecated. - shouldn't need apis like this
-
Description copied from interface:
IRemoteFile
- Get fully qualified path and name of folder containing this file or folder, minus the root.
Returns the path. No root prefix. No file name, and no ending separator.
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext results in folder1\folder2
-
getRoot
public
String getRoot()
-
Deprecated. - shouldn't need apis like this
-
Description copied from interface:
IRemoteFile
- Get the root part of the name.
- Example:
c:\folder1\folder2\file1.ext results in c:\
- Example:
/folder1/folder2/file1.ext results in /
-
getParentName
public
String getParentName()
- Return the parent's name
-
isHidden
public boolean isHidden()
-
Description copied from interface:
IRemoteFile
- Returns true if this is a hidden file.
-
isVirtual
public boolean isVirtual()
-
canRead
public boolean canRead()
-
Description copied from interface:
IRemoteFile
- Returns true if the application can read this file.
-
canWrite
public boolean canWrite()
-
Description copied from interface:
IRemoteFile
- Returns true if the application can write to this file.
-
showReadOnlyProperty
public boolean showReadOnlyProperty()
-
Description copied from interface:
IRemoteFile
- Returns true if the ReadOnly Property should be shown in the property page.
-
getHostFile
public
IHostFile getHostFile()
-
setHostFile
public void setHostFile(
IHostFile hostFile)
- Replacing the current associated IHostFile with a new one
-
-
Parameters:
-
hostFile - the new host file -
Since:
- 3.0
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|