Class EnumConfigurationResourceFactory
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.resource.EnumConfigurationResourceFactory
-
public final class EnumConfigurationResourceFactory extends java.lang.ObjectDefines the enum configuration resource factory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumConfigurationResourceFactorygetInstance()Get the instance<T extends EnumKeyConfiguration>
EnumConfigurationsload(java.io.InputStream inputstream)Load a collection ofEnumConfiguration.voidstore(EnumConfigurations enumConfigurations, java.io.OutputStream outputStream)Store a collection ofEnumConfiguration.
-
-
-
Method Detail
-
getInstance
public static EnumConfigurationResourceFactory getInstance()
Get the instance- Returns:
- the instance
-
load
public <T extends EnumKeyConfiguration> EnumConfigurations load(java.io.InputStream inputstream) throws java.io.IOException
Load a collection ofEnumConfiguration.- Type Parameters:
T- The generic type- Parameters:
inputstream- the input stream- Returns:
- the collection
- Throws:
java.io.IOException- In case of an error
-
store
public void store(EnumConfigurations enumConfigurations, java.io.OutputStream outputStream) throws java.io.IOException
Store a collection ofEnumConfiguration.- Parameters:
enumConfigurations- the collectionoutputStream- the output stream- Throws:
java.io.IOException- In case of an error
-
-