java.lang.Object
com.pervasive.datarush.io.BasicPathDetails
- All Implemented Interfaces:
PathDetails
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongReturns the length of the file represented by the associated path.getPath()Gets the path associated with the metadata.inthashCode()booleanIndicates 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.booleanIndicates whether the associated path can be read.booleanIndicates whether the associated path can be written.
-
Constructor Details
-
BasicPathDetails
public BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size)
-
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
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:
-
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:
-
hashCode
public int hashCode() -
equals
-