- java.lang.Object
 - 
- com.pervasive.datarush.io.BasicPathDetails
 
 
- 
- All Implemented Interfaces:
 PathDetails
public final class BasicPathDetails extends Object implements PathDetails
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicPathDetails.ObjectType 
- 
Constructor Summary
Constructors Constructor Description BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetLength()Returns the length of the file represented by the associated path.PathgetPath()Gets the path associated with the metadata.inthashCode()booleanisDirectory()Indicates whether the associated path represents a directory.booleanisFile()Indicates whether the associated path represents a file.booleanisHidden()Indicates whether the associated path is hidden by the file system.booleanisReadable()Indicates whether the associated path can be read.booleanisWritable()Indicates whether the associated path can be written. 
 - 
 
- 
- 
Constructor Detail
- 
BasicPathDetails
public BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size)
 
 - 
 
- 
Method Detail
- 
getPath
public Path getPath()
Description copied from interface:PathDetailsGets the path associated with the metadata.- Specified by:
 getPathin interfacePathDetails- Returns:
 - the associated file system object's path
 
 
- 
isReadable
public boolean isReadable()
Description copied from interface:PathDetailsIndicates whether the associated path can be read.- Specified by:
 isReadablein interfacePathDetails- Returns:
 truethe path represents a readable file or directory,falseotherwise.- See Also:
 FileClient.isReadable(Path)
 
- 
isWritable
public boolean isWritable()
Description copied from interface:PathDetailsIndicates whether the associated path can be written.- Specified by:
 isWritablein interfacePathDetails- Returns:
 truethe path represents a writable file or directory,falseotherwise.- See Also:
 FileClient.isWritable(Path)
 
- 
isFile
public boolean isFile()
Description copied from interface:PathDetailsIndicates whether the associated path represents a file.- Specified by:
 isFilein interfacePathDetails- Returns:
 truethe path represents a file,falseotherwise.- See Also:
 FileClient.isFile(Path)
 
- 
isDirectory
public boolean isDirectory()
Description copied from interface:PathDetailsIndicates whether the associated path represents a directory.- Specified by:
 isDirectoryin interfacePathDetails- Returns:
 truethe path represents a directory,falseotherwise.- See Also:
 FileClient.isDirectory(Path)
 
- 
getLength
public long getLength()
Description copied from interface:PathDetailsReturns the length of the file represented by the associated path.- Specified by:
 getLengthin interfacePathDetails- Returns:
 - the length of the file
 - See Also:
 FileClient.getLength(Path)
 
- 
isHidden
public boolean isHidden()
Description copied from interface:PathDetailsIndicates whether the associated path is hidden by the file system.- Specified by:
 isHiddenin interfacePathDetails- Returns:
 trueif the path is hidden,falseotherwise.- See Also:
 FileClient.isHidden(Path)
 
 - 
 
 -