org.eclipse.rse.services.dstore.files
Class DStoreHostFile
java.lang.Object
org.eclipse.rse.services.dstore.files.DStoreHostFile
- All Implemented Interfaces:
- IHostFile
- Direct Known Subclasses:
- DStoreVirtualHostFile
- public class DStoreHostFile
- extends Object
- implements IHostFile
|
Constructor Summary |
DStoreHostFile(org.eclipse.dstore.core.model.DataElement element)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_MODIFIED_DATE
public static final int ATTRIBUTE_MODIFIED_DATE
- See Also:
- Constant Field Values
ATTRIBUTE_SIZE
public static final int ATTRIBUTE_SIZE
- See Also:
- Constant Field Values
ATTRIBUTE_CLASSIFICATION
public static final int ATTRIBUTE_CLASSIFICATION
- See Also:
- Constant Field Values
ATTRIBUTE_IS_HIDDEN
public static final int ATTRIBUTE_IS_HIDDEN
- See Also:
- Constant Field Values
ATTRIBUTE_CAN_WRITE
public static final int ATTRIBUTE_CAN_WRITE
- See Also:
- Constant Field Values
ATTRIBUTE_CAN_READ
public static final int ATTRIBUTE_CAN_READ
- See Also:
- Constant Field Values
_element
protected org.eclipse.dstore.core.model.DataElement _element
_isArchive
protected boolean _isArchive
DStoreHostFile
public DStoreHostFile(org.eclipse.dstore.core.model.DataElement element)
getDataElement
public org.eclipse.dstore.core.model.DataElement getDataElement()
getNameFromPath
public static String getNameFromPath(String path)
getParentPathFromPath
public static String getParentPathFromPath(String path)
getName
public String getName()
- Specified by:
getName in interface IHostFile
getParentPath
public String getParentPath()
- Specified by:
getParentPath in interface IHostFile
isHidden
public boolean isHidden()
- Specified by:
isHidden in interface IHostFile
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface IHostFile
isRoot
public boolean isRoot()
- Specified by:
isRoot in interface IHostFile
isFile
public boolean isFile()
- Specified by:
isFile in interface IHostFile
exists
public boolean exists()
- Specified by:
exists in interface IHostFile
getAbsolutePath
public String getAbsolutePath()
- Specified by:
getAbsolutePath in interface IHostFile
getSize
public long getSize()
- Specified by:
getSize in interface IHostFile
getModifiedDate
public long getModifiedDate()
- Specified by:
getModifiedDate in interface IHostFile
getClassification
public String getClassification()
getClassification
protected static String getClassification(String attributes)
getFileLength
protected static long getFileLength(String attributes)
getModifiedDate
protected static long getModifiedDate(String attributes)
getAttribute
protected static String getAttribute(String attributes,
int index)
renameTo
public void renameTo(String newAbsolutePath)
- Specified by:
renameTo in interface IHostFile
internalIsArchive
protected boolean internalIsArchive()
isArchive
public boolean isArchive()
- Specified by:
isArchive in interface IHostFile
canRead
public boolean canRead()
- Specified by:
canRead in interface IHostFile
canWrite
public boolean canWrite()
- Specified by:
canWrite in interface IHostFile
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.