|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.RemoteFileImpl
com.ibm.etools.systems.localfilesubsys.impl.LocalFileImpl
Represents a local file object
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileImpl |
---|
_isStale, BINARY_FALSE, BINARY_TRUE, cacheAbsolutePath, canonicalPath, canRead, canWrite, classification, containingArchiveFullName, contents, context, debugMode, DIRECTORY_FALSE, DIRECTORY_TRUE, exists, fullyQualifiedName, isCached, isContainer, isDirectory, isHidden, isRoot, isVirtualFile, isVirtualFolder, label, lastModified, length, nameOnly, parentFile, pathOnly, properties, propertyStates, remoteObj, ROOT_FALSE, ROOT_TRUE, rootOnly, showReadOnly |
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile |
---|
CONNECTION_DELIMITER, ISROOT_NO, ISROOT_YES |
Constructor Summary | |
---|---|
LocalFileImpl(IRemoteFileContext context,
File file,
boolean isRoot,
boolean isDirectory)
Constructor that takes a context object containing important information. |
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. |
void |
clearCacheChecks()
|
boolean |
exists()
Returns true if this folder or file actually exists. |
String |
getClassification()
Returns the classification of this file. |
String |
getComment()
|
long |
getExpandedSize()
|
File |
getFileWrapper()
Return an object extending java.io.File and proxing 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. |
boolean |
isHidden()
Returns true if this is a hidden file. |
void |
setExists(boolean exists,
boolean setCacheFlag)
This method should not be used. |
void |
setFile(Object file)
Internal method called by the subsystem. |
void |
setIsHidden(boolean flag)
Internal method called by the subsystem. |
void |
setLastModified(long lastModified)
Internal method called by the subsystem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteFile |
---|
compareTo, getAbsolutePath, getAbsolutePathPlusConnection, getAllFilterStrings, getCanonicalPath, getCompressedSize, getCompressionMethod, getCompressionRatio, getExtension, getFile, getFilterString, getLabel, getLastModifiedDate, getLineSeparator, getName, getParent, getParentName, getParentNoRoot, getParentRemoteFile, getParentRemoteFileSubSystem, getRoot, getSeparator, getSeparatorChar, getSystemConnection, isAncestorOf, isArchive, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isLink, isRoot, isText, isVirtual, setFilterString, showBriefPropertySet, showReadOnlyProperty |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteContainer |
---|
copyContentsTo, getContents, hasContents, replaceContent, setContents |
Methods inherited from interface com.ibm.etools.systems.model.ISystemContainer |
---|
getContents, hasContents, isStale, markStale |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemotePropertyHolder |
---|
getProperties, getProperty, isPropertyStale, markAllPropertiesStale, markPropertyStale, setProperties, setProperty |
Field Detail |
public static final String copyright
Constructor Detail |
public LocalFileImpl(IRemoteFileContext context, File file, boolean isRoot, boolean isDirectory)
context
- An object holding contextual information about this objectIRemoteFileContext
Method Detail |
public void setFile(Object file)
IRemoteFileMutable
setFile
in interface IRemoteFileMutable
setFile
in class RemoteFileImpl
public File getFileWrapper()
IRemoteFile
getFileWrapper
in interface IRemoteFile
getFileWrapper
in class RemoteFileImpl
public void clearCacheChecks()
public boolean exists()
IRemoteFile
exists
in interface IRemoteFile
exists
in class RemoteFileImpl
IRemoteFile.exists()
public void setExists(boolean exists, boolean setCacheFlag)
public long getLength()
IRemoteFile
getLength
in interface IRemoteFile
getLength
in class RemoteFileImpl
IRemoteFile.getLength()
public void setIsHidden(boolean flag)
RemoteFileImpl
setIsHidden
in interface IRemoteFileMutable
setIsHidden
in class RemoteFileImpl
RemoteFileImpl.setLastModified(long)
,
RemoteFileImpl.setExists(boolean)
,
RemoteFileImpl.setAbsolutePath(String, String, boolean, boolean)
,
RemoteFileImpl.setCanRead(boolean)
,
RemoteFileImpl.setCanWrite(boolean)
public boolean isHidden()
IRemoteFile
isHidden
in interface IRemoteFile
isHidden
in class RemoteFileImpl
public boolean canRead()
IRemoteFile
canRead
in interface IRemoteFile
canRead
in class RemoteFileImpl
public boolean canWrite()
IRemoteFile
canWrite
in interface IRemoteFile
canWrite
in class RemoteFileImpl
public long getLastModified()
IRemoteFile
getLastModified
in interface IRemoteFile
getLastModified
in class RemoteFileImpl
IRemoteFile.getLastModified()
public void setLastModified(long lastModified)
setLastModified
in interface IRemoteFileMutable
setLastModified
in class RemoteFileImpl
RemoteFileImpl.setLength(long)
,
RemoteFileImpl.setExists(boolean)
,
RemoteFileImpl.setAbsolutePath(String, String, boolean, boolean)
public String getComment()
getComment
in interface IRemoteFile
getComment
in class RemoteFileImpl
public long getExpandedSize()
getExpandedSize
in interface IRemoteFile
getExpandedSize
in class RemoteFileImpl
public String getClassification()
IRemoteFile
getClassification
in interface IRemoteFile
getClassification
in class RemoteFileImpl
IRemoteFile.getClassification()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |