Interface PropertiesManager
- All Known Implementing Classes:
JdkPropertiesManager
public interface PropertiesManager
Interface for properties managers implementations.
-
Field 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 properties
-
Field Details
-
DEFAULT_MANAGER_EXTENSION
- See Also:
-
-
Method Details
-
isExtensionSupport
Determinate if manager support resource by file extension.- Parameters:
extension
- file extension- Returns:
- true if extension is supported
-
load
Load properties.- Parameters:
in
- input stream of properties resource- Returns:
- a properties
- Throws:
IOException
- in case of IO problems
-
save
Store properties- Parameters:
properties
- properties to storeout
- output stream of properties resourcecomments
- a comments added to output resource- Throws:
IOException
- in case of IO problems
-