- 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 class
BasicPathDetails.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 boolean
equals(Object obj)
long
getLength()
Returns the length of the file represented by the associated path.Path
getPath()
Gets the path associated with the metadata.int
hashCode()
boolean
isDirectory()
Indicates whether the associated path represents a directory.boolean
isFile()
Indicates whether the associated path represents a file.boolean
isHidden()
Indicates whether the associated path is hidden by the file system.boolean
isReadable()
Indicates whether the associated path can be read.boolean
isWritable()
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:PathDetails
Gets the path associated with the metadata.- Specified by:
getPath
in interfacePathDetails
- Returns:
- the associated file system object's path
-
isReadable
public boolean isReadable()
Description copied from interface:PathDetails
Indicates whether the associated path can be read.- Specified by:
isReadable
in interfacePathDetails
- Returns:
true
the path represents a readable file or directory,false
otherwise.- See Also:
FileClient.isReadable(Path)
-
isWritable
public boolean isWritable()
Description copied from interface:PathDetails
Indicates whether the associated path can be written.- Specified by:
isWritable
in interfacePathDetails
- Returns:
true
the path represents a writable file or directory,false
otherwise.- See Also:
FileClient.isWritable(Path)
-
isFile
public boolean isFile()
Description copied from interface:PathDetails
Indicates whether the associated path represents a file.- Specified by:
isFile
in interfacePathDetails
- Returns:
true
the path represents a file,false
otherwise.- See Also:
FileClient.isFile(Path)
-
isDirectory
public boolean isDirectory()
Description copied from interface:PathDetails
Indicates whether the associated path represents a directory.- Specified by:
isDirectory
in interfacePathDetails
- Returns:
true
the path represents a directory,false
otherwise.- See Also:
FileClient.isDirectory(Path)
-
getLength
public long getLength()
Description copied from interface:PathDetails
Returns the length of the file represented by the associated path.- Specified by:
getLength
in interfacePathDetails
- Returns:
- the length of the file
- See Also:
FileClient.getLength(Path)
-
isHidden
public boolean isHidden()
Description copied from interface:PathDetails
Indicates whether the associated path is hidden by the file system.- Specified by:
isHidden
in interfacePathDetails
- Returns:
true
if the path is hidden,false
otherwise.- See Also:
FileClient.isHidden(Path)
-
-