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()
PathDetailsgetPath in interface PathDetailspublic boolean isReadable()
PathDetailsisReadable in interface PathDetailstrue the path represents a readable
 file or directory, false otherwise.FileClient.isReadable(Path)public boolean isWritable()
PathDetailsisWritable in interface PathDetailstrue the path represents a writable
 file or directory, false otherwise.FileClient.isWritable(Path)public boolean isFile()
PathDetailsisFile in interface PathDetailstrue the path represents a file,
 false otherwise.FileClient.isFile(Path)public boolean isDirectory()
PathDetailsisDirectory in interface PathDetailstrue the path represents a directory,
 false otherwise.FileClient.isDirectory(Path)public long getLength()
PathDetailsgetLength in interface PathDetailsFileClient.getLength(Path)public boolean isHidden()
PathDetailsisHidden in interface PathDetailstrue if the path is hidden, 
 false otherwise.FileClient.isHidden(Path)Copyright © 2021 Actian Corporation. All rights reserved.