Class FileSelector

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String path  
      private FilePosition position  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSelector​(java.lang.String path, FilePosition position)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.io.File getFile()
      Get the selected file as a File.
      java.nio.file.Path getPath()
      Get the selected file as a Path using the default FileSystem.
      java.util.Optional<FilePosition> getPosition()
      Get the selected position within the file as a FilePosition.
      java.lang.String getRawPath()
      Get the selected file as a raw path.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • path

        private final java.lang.String path
    • Constructor Detail

      • FileSelector

        FileSelector​(java.lang.String path,
                     FilePosition position)
    • Method Detail

      • getFile

        public java.io.File getFile()
        Get the selected file as a File.
        See Also:
        getPath(), getRawPath()
      • getPath

        public java.nio.file.Path getPath()
        Get the selected file as a Path using the default FileSystem.
        See Also:
        getFile(), getRawPath()
      • getRawPath

        public java.lang.String getRawPath()
        Get the selected file as a raw path.
        See Also:
        getFile(), getPath()
      • getPosition

        public java.util.Optional<FilePosition> getPosition()
        Get the selected position within the file as a FilePosition.
      • equals

        @API(status=STABLE,
             since="1.3")
        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
        Since:
        1.3
      • hashCode

        @API(status=STABLE,
             since="1.3")
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Since:
        1.3
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object