Package org.apache.karaf.tools.utils
Class KarafPropertiesFile
- java.lang.Object
-
- org.apache.karaf.tools.utils.KarafPropertiesFile
-
public class KarafPropertiesFile extends Object
-
-
Constructor Summary
Constructors Constructor Description KarafPropertiesFile(File propertyFile)KarafPropertiesFile(File karafHome, String location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(KarafPropertyEdit editSpec)voidextend(String key, String value, boolean prepend)Stringget(String key)voidload()voidput(String key, String value)voidremove(String key)voidreplace(File source)voidstore()voidstore(File destinationFile)
-
-
-
Method Detail
-
load
public void load() throws IOException- Throws:
IOException
-
remove
public void remove(String key)
-
apply
public void apply(KarafPropertyEdit editSpec)
-
store
public void store() throws IOException- Throws:
IOException
-
store
public void store(File destinationFile) throws IOException
- Throws:
IOException
-
replace
public void replace(File source)
-
-