Package docking.widgets.filechooser
Class GhidraFile
java.lang.Object
java.io.File
docking.widgets.filechooser.GhidraFile
- All Implemented Interfaces:
Serializable
,Comparable<File>
An extension of File that does not translate to the
native operating system's file separator.
For example, on Windows:
In this case, path equals "c:\temp\foo.txt". However using GhidraFile, path would still equal "c:/temp/foo.txt"
File f = new File("c:/temp/foo.txt");
String path = f.getAbsolutePath();
In this case, path equals "c:\temp\foo.txt". However using GhidraFile, path would still equal "c:/temp/foo.txt"
- See Also:
-
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorDescriptionGhidraFile
(File parent, String name, char separator) Construct a new GhidraFile.GhidraFile
(String path, char separator) Construct a new GhidraFile.GhidraFile
(String parent, String child, char separator) Construct a new GhidraFile. -
Method Summary
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getFreeSpace, getName, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
Constructor Details
-
GhidraFile
Construct a new GhidraFile.- Parameters:
parent
- the parent directory; eg, "c:\temp"child
- the child file name; eg, "foo.txt"separator
- the separator character; eg, '/' or '\'
-
GhidraFile
Construct a new GhidraFile.- Parameters:
path
- the path to the file; eg, "c:\temp\foo.txt" or "temp\foo.txt"separator
- the separator character; eg, '/' or '\'
-
GhidraFile
Construct a new GhidraFile.- Parameters:
parent
- the parent file pathname
- the name of the fileseparator
- the separator character; eg, '/' or '\'
-
-
Method Details
-
getAbsoluteFile
- Overrides:
getAbsoluteFile
in classFile
- See Also:
-
getCanonicalFile
- Overrides:
getCanonicalFile
in classFile
- Throws:
IOException
- See Also:
-
getAbsolutePath
- Overrides:
getAbsolutePath
in classFile
- See Also:
-
getCanonicalPath
- Overrides:
getCanonicalPath
in classFile
- Throws:
IOException
- See Also:
-
getParent
-
getParentFile
- Overrides:
getParentFile
in classFile
- See Also:
-
getPath
-