RSE
Release 1.0

org.eclipse.rse.services.dstore.files
Class DStoreHostFile

java.lang.Object
  extended byorg.eclipse.rse.services.dstore.files.DStoreHostFile
All Implemented Interfaces:
IHostFile
Direct Known Subclasses:
DStoreVirtualHostFile

public class DStoreHostFile
extends Object
implements IHostFile


Field Summary
protected  org.eclipse.dstore.core.model.DataElement _element
           
protected  boolean _isArchive
           
static int ATTRIBUTE_CAN_READ
           
static int ATTRIBUTE_CAN_WRITE
           
static int ATTRIBUTE_CLASSIFICATION
           
static int ATTRIBUTE_IS_HIDDEN
           
static int ATTRIBUTE_MODIFIED_DATE
           
static int ATTRIBUTE_SIZE
           
 
Constructor Summary
DStoreHostFile(org.eclipse.dstore.core.model.DataElement element)
           
 
Method Summary
 boolean canRead()
           
 boolean canWrite()
           
 boolean exists()
           
 String getAbsolutePath()
           
protected static String getAttribute(String attributes, int index)
           
 String getClassification()
           
protected static String getClassification(String attributes)
           
 org.eclipse.dstore.core.model.DataElement getDataElement()
           
protected static long getFileLength(String attributes)
           
 long getModifiedDate()
           
protected static long getModifiedDate(String attributes)
           
 String getName()
           
static String getNameFromPath(String path)
           
 String getParentPath()
           
static String getParentPathFromPath(String path)
           
 long getSize()
           
protected  boolean internalIsArchive()
           
 boolean isArchive()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 boolean isRoot()
           
 void renameTo(String newAbsolutePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DStoreHostFile

public DStoreHostFile(org.eclipse.dstore.core.model.DataElement element)
Method Detail

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

RSE
Release 1.0

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