|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.subsystems.files.core.subsystems.RemoteFile
org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
public abstract class AbstractRemoteFile
Field Summary | |
---|---|
protected String |
_classiciation
|
protected IHostFile |
_hostFile
|
protected FileServiceSubSystem |
_subSystem
|
Fields inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFile |
---|
_contents, _context, _isStale, _label, _parentFile, isContainer, properties, propertyStates, remoteObj |
Fields inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile |
---|
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES |
Constructor Summary | |
---|---|
AbstractRemoteFile(FileServiceSubSystem subSystem,
IRemoteFileContext context,
IRemoteFile parent,
IHostFile hostFile)
|
Method Summary | |
---|---|
boolean |
canRead()
Returns true if the application can read this file. |
boolean |
canWrite()
Returns true if the application can write to this file. |
int |
compareTo(Object other)
Compare one remote file to another. |
boolean |
exists()
Returns true if this folder or file actually exists. |
String |
getAbsolutePath()
Get fully qualified name: root plus path plus name. |
IHost |
getHost()
Return the connection this remote file is from. |
IHostFile |
getHostFile()
|
String |
getLabel()
Get the display name for this file. |
long |
getLastModified()
Returns the time (in milliseconds since epoch) this file was last modified. |
long |
getLength()
Returns the length, in bytes, of this file. |
String |
getName()
Get unqualified file name. |
String |
getParentName()
Get the unqualified name of the parent directory containing this file or folder. |
String |
getParentNoRoot()
Deprecated. - shouldn't need apis like this |
String |
getParentPath()
Get fully qualified path and name of folder containing this file or folder. |
IRemoteFileSubSystem |
getParentRemoteFileSubSystem()
Return the parent subsystem |
String |
getRoot()
Deprecated. - shouldn't need apis like this |
boolean |
isDirectory()
Returns true if this represents a folder (eg: c:\\folder) |
boolean |
isFile()
Returns true if this represents a file, versus a root or folder |
boolean |
isHidden()
Returns true if this is a hidden file. |
boolean |
isRoot()
Returns true if this represents a root folder (eg: c:\\ or /). |
boolean |
isVirtual()
|
void |
setHostFile(IHostFile hostFile)
Replacing the current associated IHostFile with a new one |
boolean |
showBriefPropertySet()
Querying properties for the property sheet can be expensive on some operating systems. |
boolean |
showReadOnlyProperty()
Returns true if the ReadOnly Property should be shown in the property page. |
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 |
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 |
---|
getCanonicalPath, getClassification |
Field Detail |
---|
protected IHostFile _hostFile
protected FileServiceSubSystem _subSystem
protected String _classiciation
Constructor Detail |
---|
public AbstractRemoteFile(FileServiceSubSystem subSystem, IRemoteFileContext context, IRemoteFile parent, IHostFile hostFile)
Method Detail |
---|
public IRemoteFileSubSystem getParentRemoteFileSubSystem()
RemoteFile
getParentRemoteFileSubSystem
in interface IRemoteFile
getParentRemoteFileSubSystem
in class RemoteFile
public IHost getHost()
RemoteFile
getHost
in interface IRemoteFile
getHost
in class RemoteFile
public String getAbsolutePath()
IRemoteFile
null
.public String getLabel()
IRemoteFile
getLabel
in interface IRemoteFile
getLabel
in class RemoteFile
IRemoteFile.getLabel()
public String getName()
IRemoteFile
public String getParentPath()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in c:\folder1\folder2
public boolean isRoot()
IRemoteFile
public boolean isDirectory()
IRemoteFile
public boolean isFile()
IRemoteFile
public boolean exists()
IRemoteFile
public long getLastModified()
IRemoteFile
public long getLength()
IRemoteFile
public int compareTo(Object other) throws ClassCastException
RemoteFile
compareTo
in interface Comparable
compareTo
in interface IRemoteFile
compareTo
in class RemoteFile
ClassCastException
public boolean showBriefPropertySet()
IRemoteFile
public String getParentNoRoot()
IRemoteFile
If this object represent only a root drive, this returns null;
Example: c:\folder1\folder2\file1.ext
results in folder1\folder2
public String getRoot()
IRemoteFile
c:\folder1\folder2\file1.ext
results in c:\
/folder1/folder2/file1.ext
results in /
public String getParentName()
IRemoteFile
Example: c:\folder1\folder2\file1.ext
results in folder2
public boolean isHidden()
IRemoteFile
public boolean isVirtual()
public boolean canRead()
IRemoteFile
public boolean canWrite()
IRemoteFile
public boolean showReadOnlyProperty()
IRemoteFile
public IHostFile getHostFile()
public void setHostFile(IHostFile hostFile)
hostFile
- the new host file
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |