public final class BasicPathDetails extends Object implements PathDetails
Modifier and Type | Class and Description |
---|---|
static class |
BasicPathDetails.ObjectType |
Constructor and Description |
---|
BasicPathDetails(Path path,
boolean readable,
boolean writable,
boolean hidden,
BasicPathDetails.ObjectType type,
long size) |
Modifier and Type | Method and 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.
|
public BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size)
public Path getPath()
PathDetails
getPath
in interface PathDetails
public boolean isReadable()
PathDetails
isReadable
in interface PathDetails
true
the path represents a readable
file or directory, false
otherwise.FileClient.isReadable(Path)
public boolean isWritable()
PathDetails
isWritable
in interface PathDetails
true
the path represents a writable
file or directory, false
otherwise.FileClient.isWritable(Path)
public boolean isFile()
PathDetails
isFile
in interface PathDetails
true
the path represents a file,
false
otherwise.FileClient.isFile(Path)
public boolean isDirectory()
PathDetails
isDirectory
in interface PathDetails
true
the path represents a directory,
false
otherwise.FileClient.isDirectory(Path)
public long getLength()
PathDetails
getLength
in interface PathDetails
FileClient.getLength(Path)
public boolean isHidden()
PathDetails
isHidden
in interface PathDetails
true
if the path is hidden,
false
otherwise.FileClient.isHidden(Path)
Copyright © 2024 Actian Corporation. All rights reserved.