Package ghidra.framework.store.local
Class IndexedPropertyFile
java.lang.Object
ghidra.util.PropertyFile
ghidra.framework.store.local.ItemPropertyFile
ghidra.framework.store.local.IndexedPropertyFile
-
Field Summary
FieldsFields inherited from class ghidra.framework.store.local.ItemPropertyFile
name, parentPathFields inherited from class ghidra.util.PropertyFile
PROPERTY_EXT, propertyFile, storageName -
Constructor Summary
ConstructorsConstructorDescriptionIndexedPropertyFile(File file) Construct a existing PropertyFile.IndexedPropertyFile(File dir, String storageName) Construct a existing PropertyFile.IndexedPropertyFile(File dir, String storageName, String parentPath, String name) Construct a new or existing PropertyFile. -
Method Summary
Methods inherited from class ghidra.framework.store.local.ItemPropertyFile
getFileID, getName, getParentPath, getPath, moveTo, setFileIDMethods inherited from class ghidra.util.PropertyFile
contains, delete, equals, exists, getBoolean, getInt, getLong, getParentStorageDirectory, getStorageName, getString, hashCode, isReadOnly, lastModified, putBoolean, putInt, putLong, putString, readState, remove, writeState
-
Field Details
-
NAME_PROPERTY
- See Also:
-
PARENT_PATH_PROPERTY
- See Also:
-
-
Constructor Details
-
IndexedPropertyFile
public IndexedPropertyFile(File dir, String storageName, String parentPath, String name) throws IOException Construct a new or existing PropertyFile. This constructor ignores retained property values for NAME and PARENT path. This constructor will not throw an exception if the file does not exist.- Parameters:
dir- parent directorystorageName- stored property file name (without extension)parentPath- path to parentname- name of the property file- Throws:
InvalidObjectException- if a file parse error occursIOException- if an IO error occurs reading an existing file
-
IndexedPropertyFile
Construct a existing PropertyFile. This constructor uses property values for NAME and PARENT path.- Parameters:
dir- parent directorystorageName- stored property file name (without extension)- Throws:
FileNotFoundException- if property file does not existInvalidObjectException- if a file parse error occursIOException- if error occurs reading property file
-
IndexedPropertyFile
Construct a existing PropertyFile. This constructor uses property values for NAME and PARENT path.- Parameters:
file- property file- Throws:
FileNotFoundException- if property file does not existInvalidObjectException- if a file parse error occursIOException- if error occurs reading property file
-
-
Method Details
-
moveTo
public void moveTo(File newParent, String newStorageName, String newParentPath, String newName) throws DuplicateFileException, IOException Description copied from class:ItemPropertyFileMove this PropertyFile to the newParent file.- Overrides:
moveToin classItemPropertyFile- Parameters:
newParent- new storage parent of the native filenewStorageName- new storage name for this property filenewParentPath- new logical parent pathnewName- new logical item name- Throws:
DuplicateFileException- thrown if a file with the newName already existsIOException- thrown if there was a problem accessing the
-