RSE
Release 1.0

org.eclipse.rse.subsystems.files.ftp.model
Class FTPRemoteFile

java.lang.Object
  extended byorg.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
      extended byorg.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
          extended byorg.eclipse.rse.subsystems.files.ftp.model.FTPRemoteFile
All Implemented Interfaces:
Cloneable, Comparable, IAdaptable, IRemoteContainer, IRemoteFile, IRemotePropertyHolder, ISchedulingRule, ISystemContainer

public class FTPRemoteFile
extends AbstractRemoteFile


Field Summary
protected  FTPHostFile _ftpHostFile
           
 
Fields inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
_classiciation, _hostFile, _subSystem
 
Fields inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
_contents, _context, _isStale, _label, _parentFile, fullyQualifiedName, isContainer, properties, propertyStates, remoteObj
 
Fields inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES
 
Constructor Summary
FTPRemoteFile(FileServiceSubSystem ss, IRemoteFileContext context, IRemoteFile parent, FTPHostFile hostFile)
           
 
Method Summary
 String getCanonicalPath()
          Returns the canonical path of the remote file.
 String getClassification()
          Returns the classification of this file.
 boolean isVirtual()
           
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
canRead, canWrite, compareTo, exists, getAbsolutePath, getHostFile, getLabel, getLastModified, getLength, getName, getParentName, getParentNoRoot, getParentPath, getParentRemoteFileSubSystem, getRoot, getSystemConnection, isDirectory, isFile, isHidden, isRoot, showBriefPropertySet, showReadOnlyProperty
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
contains, containsFilterKey, copyContentsTo, equals, getAbsolutePathPlusConnection, getAdapter, getAllFilterStrings, getComment, getContents, getContents, getContext, getExtension, getFile, getFilterString, getHostName, getLastModifiedDate, getLineSeparator, getParentRemoteFile, getParentRemoteFileSubSystemConfiguration, getProperties, getProperty, getSeparator, getSeparatorChar, hasContents, hasContents, isAncestorOf, isArchive, isBinary, isConflicting, isDescendantOf, isExecutable, isLink, isPropertyStale, isStale, isText, isUnix, markAllPropertiesStale, markPropertyStale, markStale, markStale, replaceContent, setContents, setFile, setFilterString, setIsContainer, setLabel, setParentRemoteFile, setProperties, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile
getAbsolutePathPlusConnection, getAllFilterStrings, getComment, getExtension, getFile, getFilterString, getLastModifiedDate, getLineSeparator, getParentRemoteFile, getSeparator, getSeparatorChar, isAncestorOf, isArchive, isBinary, isDescendantOf, isExecutable, isLink, isText
 
Methods inherited from interface org.eclipse.rse.core.subsystems.IRemoteContainer
copyContentsTo, getContents, hasContents, replaceContent, setContents
 
Methods inherited from interface org.eclipse.rse.core.model.ISystemContainer
getContents, hasContents, isStale, markStale, markStale
 
Methods inherited from interface org.eclipse.rse.core.subsystems.IRemotePropertyHolder
getProperties, getProperty, isPropertyStale, markAllPropertiesStale, markPropertyStale, setProperties, setProperty
 
Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule
contains, isConflicting
 

Field Detail

_ftpHostFile

protected FTPHostFile _ftpHostFile
Constructor Detail

FTPRemoteFile

public FTPRemoteFile(FileServiceSubSystem ss,
                     IRemoteFileContext context,
                     IRemoteFile parent,
                     FTPHostFile hostFile)
Method Detail

isVirtual

public boolean isVirtual()
Overrides:
isVirtual in class AbstractRemoteFile

getCanonicalPath

public String getCanonicalPath()
Description copied from interface: IRemoteFile
Returns the canonical path of the remote file.

Returns:
the resolved path if the file is a symbolic link, or

getClassification

public String getClassification()
Description copied from interface: IRemoteFile
Returns the classification of this file. If the file is an executable, then "executable(...)" will be returned. If the file is a symbolic link then it will appear as "link(....):resolvedPath". The resolvedPath is the path that the link resolves to. A symbolic link that resolves to an executable would appear as "link(executable(...)):resolvedPath". By default this should just return "file".

Returns:
the classification.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.