Class BasicPathDetails

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 enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    long
    Returns the length of the file represented by the associated path.
    Gets the path associated with the metadata.
    int
     
    boolean
    Indicates whether the associated path represents a directory.
    boolean
    Indicates whether the associated path represents a file.
    boolean
    Indicates whether the associated path is hidden by the file system.
    boolean
    Indicates whether the associated path can be read.
    boolean
    Indicates whether the associated path can be written.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicPathDetails

      public BasicPathDetails(Path path, boolean readable, boolean writable, boolean hidden, BasicPathDetails.ObjectType type, long size)
  • Method Details

    • getPath

      public Path getPath()
      Description copied from interface: PathDetails
      Gets the path associated with the metadata.
      Specified by:
      getPath in interface PathDetails
      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 interface PathDetails
      Returns:
      true the path represents a readable file or directory, false otherwise.
      See Also:
    • isWritable

      public boolean isWritable()
      Description copied from interface: PathDetails
      Indicates whether the associated path can be written.
      Specified by:
      isWritable in interface PathDetails
      Returns:
      true the path represents a writable file or directory, false otherwise.
      See Also:
    • isFile

      public boolean isFile()
      Description copied from interface: PathDetails
      Indicates whether the associated path represents a file.
      Specified by:
      isFile in interface PathDetails
      Returns:
      true the path represents a file, false otherwise.
      See Also:
    • isDirectory

      public boolean isDirectory()
      Description copied from interface: PathDetails
      Indicates whether the associated path represents a directory.
      Specified by:
      isDirectory in interface PathDetails
      Returns:
      true the path represents a directory, false otherwise.
      See Also:
    • getLength

      public long getLength()
      Description copied from interface: PathDetails
      Returns the length of the file represented by the associated path.
      Specified by:
      getLength in interface PathDetails
      Returns:
      the length of the file
      See Also:
    • isHidden

      public boolean isHidden()
      Description copied from interface: PathDetails
      Indicates whether the associated path is hidden by the file system.
      Specified by:
      isHidden in interface PathDetails
      Returns:
      true if the path is hidden, false otherwise.
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object