Package docking.widgets.filechooser
Class GhidraFile
- java.lang.Object
-
- java.io.File
-
- docking.widgets.filechooser.GhidraFile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<java.io.File>
public class GhidraFile extends java.io.FileAn extension of File that does not translate to the native operating system's file separator. For example, on Windows:
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GhidraFile(java.io.File parent, java.lang.String name, char separator)Construct a new GhidraFile.GhidraFile(java.lang.String path, char separator)Construct a new GhidraFile.GhidraFile(java.lang.String parent, java.lang.String child, char separator)Construct a new GhidraFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetAbsoluteFile()java.lang.StringgetAbsolutePath()java.io.FilegetCanonicalFile()java.lang.StringgetCanonicalPath()java.lang.StringgetParent()java.io.FilegetParentFile()java.lang.StringgetPath()-
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 Detail
-
GhidraFile
public GhidraFile(java.lang.String parent, java.lang.String child, char separator)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
public GhidraFile(java.lang.String path, char separator)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
public GhidraFile(java.io.File parent, java.lang.String name, char separator)Construct a new GhidraFile.- Parameters:
parent- the parent file pathname- the name of the fileseparator- the separator character; eg, '/' or '\'
-
-
Method Detail
-
getAbsoluteFile
public java.io.File getAbsoluteFile()
- Overrides:
getAbsoluteFilein classjava.io.File- See Also:
File.getAbsoluteFile()
-
getCanonicalFile
public java.io.File getCanonicalFile() throws java.io.IOException- Overrides:
getCanonicalFilein classjava.io.File- Throws:
java.io.IOException- See Also:
File.getCanonicalFile()
-
getAbsolutePath
public java.lang.String getAbsolutePath()
- Overrides:
getAbsolutePathin classjava.io.File- See Also:
File.getAbsolutePath()
-
getCanonicalPath
public java.lang.String getCanonicalPath() throws java.io.IOException- Overrides:
getCanonicalPathin classjava.io.File- Throws:
java.io.IOException- See Also:
File.getCanonicalPath()
-
getParent
public java.lang.String getParent()
- Overrides:
getParentin classjava.io.File- See Also:
File.getParent()
-
getParentFile
public java.io.File getParentFile()
- Overrides:
getParentFilein classjava.io.File- See Also:
File.getParentFile()
-
getPath
public java.lang.String getPath()
- Overrides:
getPathin classjava.io.File- See Also:
File.getPath()
-
-