Class JdkPropertiesManager
java.lang.Object
org.codehaus.mojo.properties.managers.JdkPropertiesManager
- All Implemented Interfaces:
PropertiesManager
Properties manager using JDK properties as backand.
-
Field Summary
Fields inherited from interface org.codehaus.mojo.properties.managers.PropertiesManager
DEFAULT_MANAGER_EXTENSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isExtensionSupport
(String extension) Determinate if manager support resource by file extension.load
(InputStream in) Load properties.void
save
(Properties properties, OutputStream out, String comments) Store propertiestoString()
-
Constructor Details
-
JdkPropertiesManager
public JdkPropertiesManager()
-
-
Method Details
-
isExtensionSupport
Description copied from interface:PropertiesManager
Determinate if manager support resource by file extension.- Specified by:
isExtensionSupport
in interfacePropertiesManager
- Parameters:
extension
- file extension- Returns:
- true if extension is supported
-
load
Description copied from interface:PropertiesManager
Load properties.- Specified by:
load
in interfacePropertiesManager
- Parameters:
in
- input stream of properties resource- Returns:
- a properties
- Throws:
IOException
- in case of IO problems
-
save
Description copied from interface:PropertiesManager
Store properties- Specified by:
save
in interfacePropertiesManager
- Parameters:
properties
- properties to storeout
- output stream of properties resourcecomments
- a comments added to output resource- Throws:
IOException
- in case of IO problems
-
toString
-