Package org.eclipse.aether.internal.impl
Interface TrackingFileManager
-
- All Known Implementing Classes:
LegacyTrackingFileManager,NamedLocksTrackingFileManager
public interface TrackingFileManager
Manages access to a properties file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleandelete(java.io.File file)Deprecated.Usedelete(Path)instead.booleandelete(java.nio.file.Path path)Deletes the specified properties file, if exists.java.util.Propertiesread(java.io.File file)Deprecated.Useread(Path)instead.java.util.Propertiesread(java.nio.file.Path path)Reads up the specified properties file intoProperties, if exists, otherwisenullis returned.java.util.Propertiesupdate(java.io.File file, java.util.Map<java.lang.String,java.lang.String> updates)Deprecated.Useupdate(Path, Map)instead.java.util.Propertiesupdate(java.nio.file.Path path, java.util.Map<java.lang.String,java.lang.String> updates)Applies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.
-
-
-
Method Detail
-
read
@Deprecated java.util.Properties read(java.io.File file)
Deprecated.Useread(Path)instead.Reads up the specified properties file intoProperties, if exists, otherwisenullis returned.
-
read
java.util.Properties read(java.nio.file.Path path)
Reads up the specified properties file intoProperties, if exists, otherwisenullis returned.- Since:
- 2.0.0
-
update
@Deprecated java.util.Properties update(java.io.File file, java.util.Map<java.lang.String,java.lang.String> updates)
Deprecated.Useupdate(Path, Map)instead.Applies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.
-
update
java.util.Properties update(java.nio.file.Path path, java.util.Map<java.lang.String,java.lang.String> updates)
Applies updates to specified properties file and returns resultingPropertieswith contents same as in updated file, nevernull.- Since:
- 2.0.0
-
delete
@Deprecated boolean delete(java.io.File file)
Deprecated.Usedelete(Path)instead.Deletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Since:
- 1.9.25
-
delete
boolean delete(java.nio.file.Path path)
Deletes the specified properties file, if exists. If file existed and was deleted, returnstrue.- Since:
- 2.0.14
-
-