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 |
---|---|
long |
getLength()
Returns the length of the file represented by the associated path.
|
Path |
getPath()
Gets the path associated with the metadata.
|
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 © 2016 Actian Corporation. All rights reserved.