RSE
Release 1.0

org.eclipse.rse.subsystems.files.local.model
Class LocalVirtualFile

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.local.model.LocalFile
              extended byorg.eclipse.rse.subsystems.files.local.model.LocalVirtualFile
All Implemented Interfaces:
Cloneable, Comparable, IAdaptable, IRemoteContainer, IRemoteFile, IRemotePropertyHolder, ISchedulingRule, ISystemContainer, IVirtualRemoteFile

public class LocalVirtualFile
extends LocalFile
implements IVirtualRemoteFile


Field Summary
protected  String _absolutePath
           
protected  LocalVirtualHostFile _node
           
protected  File _parentArchive
           
 
Fields inherited from class org.eclipse.rse.subsystems.files.local.model.LocalFile
_classification, _localHostFile
 
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
LocalVirtualFile(FileServiceSubSystem ss, IRemoteFileContext context, LocalVirtualHostFile node)
           
 
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.
 String getAbsolutePath()
          Get fully qualified name: root plus path plus name.
 String getComment()
           
 long getCompressedSize()
           
 String getCompressionMethod()
           
 double getCompressionRatio()
           
 String getContainingArchiveFullName()
           
 long getExpandedSize()
           
 Object getFile(String srcEncoding, boolean isText)
           
 File getFileWrapper()
           
 File getParentArchive()
           
 VirtualChild getVirtualChild()
           
 String getVirtualFullName()
           
 String getVirtualFullPath()
           
 String getVirtualName()
           
 boolean isVirtual()
           
 boolean isVirtualFile()
           
 boolean isVirtualFolder()
           
 void setVirtualFullName(String string)
           
 void setVirtualFullPath(String string)
           
 void setVirtualName(String string)
           
 
Methods inherited from class org.eclipse.rse.subsystems.files.local.model.LocalFile
getCanonicalPath, getClassification, getFile
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.AbstractRemoteFile
compareTo, exists, 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, getContents, getContents, getContext, getExtension, 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
compareTo, exists, getAbsolutePathPlusConnection, getAllFilterStrings, getCanonicalPath, getClassification, getExtension, getFile, getFilterString, getHostFile, getLabel, getLastModified, getLastModifiedDate, getLength, getLineSeparator, getName, getParentName, getParentNoRoot, getParentPath, getParentRemoteFile, getParentRemoteFileSubSystem, getRoot, getSeparator, getSeparatorChar, getSystemConnection, isAncestorOf, isArchive, isBinary, isDescendantOf, isDirectory, isExecutable, isFile, isHidden, isLink, isRoot, isText, showBriefPropertySet, showReadOnlyProperty
 
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

_parentArchive

protected File _parentArchive

_node

protected LocalVirtualHostFile _node

_absolutePath

protected String _absolutePath
Constructor Detail

LocalVirtualFile

public LocalVirtualFile(FileServiceSubSystem ss,
                        IRemoteFileContext context,
                        LocalVirtualHostFile node)
Method Detail

getAbsolutePath

public String getAbsolutePath()
Description copied from interface: IRemoteFile
Get fully qualified name: root plus path plus name. No connection name.

Specified by:
getAbsolutePath in interface IRemoteFile
Overrides:
getAbsolutePath in class AbstractRemoteFile

getParentArchive

public File getParentArchive()

getVirtualChild

public VirtualChild getVirtualChild()

isVirtual

public boolean isVirtual()
Overrides:
isVirtual in class LocalFile

getVirtualFullName

public String getVirtualFullName()

getVirtualFullPath

public String getVirtualFullPath()

getVirtualName

public String getVirtualName()
Specified by:
getVirtualName in interface IVirtualRemoteFile

setVirtualFullName

public void setVirtualFullName(String string)

setVirtualFullPath

public void setVirtualFullPath(String string)

setVirtualName

public void setVirtualName(String string)

getFileWrapper

public File getFileWrapper()

canRead

public boolean canRead()
Description copied from interface: IRemoteFile
Returns true if the application can read this file.

Specified by:
canRead in interface IRemoteFile
Overrides:
canRead in class AbstractRemoteFile

canWrite

public boolean canWrite()
Description copied from interface: IRemoteFile
Returns true if the application can write to this file.

Specified by:
canWrite in interface IRemoteFile
Overrides:
canWrite in class AbstractRemoteFile

getComment

public String getComment()
Specified by:
getComment in interface IVirtualRemoteFile
Overrides:
getComment in class RemoteFile

getCompressedSize

public long getCompressedSize()
Specified by:
getCompressedSize in interface IVirtualRemoteFile

getCompressionMethod

public String getCompressionMethod()
Specified by:
getCompressionMethod in interface IVirtualRemoteFile

getCompressionRatio

public double getCompressionRatio()
Specified by:
getCompressionRatio in interface IVirtualRemoteFile

getFile

public Object getFile(String srcEncoding,
                      boolean isText)

getContainingArchiveFullName

public String getContainingArchiveFullName()

getExpandedSize

public long getExpandedSize()
Specified by:
getExpandedSize in interface IVirtualRemoteFile

isVirtualFile

public boolean isVirtualFile()
Specified by:
isVirtualFile in interface IVirtualRemoteFile

isVirtualFolder

public boolean isVirtualFolder()
Specified by:
isVirtualFolder in interface IVirtualRemoteFile

RSE
Release 1.0

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