Interface ConfigurationConverter
public interface ConfigurationConverter
Service class to convert between different logging configuration formats.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(InputStream inputStream, String inputFormat, OutputStream outputStream, String outputFormat) Converts a logging configuration file from one format to another.Associates each supported format symbol with a description.static ConfigurationConverter
A default implementation ofConfigurationConverter
that usesServiceLoader
to load additional formats.Returns the list of supported input formats.Returns the list of supported output formats.
-
Method Details
-
getInstance
A default implementation ofConfigurationConverter
that usesServiceLoader
to load additional formats.- See Also:
-
convert
void convert(InputStream inputStream, String inputFormat, OutputStream outputStream, String outputFormat) throws ConfigurationConverterException Converts a logging configuration file from one format to another.- Parameters:
inputStream
- The input configuration file, nevernull
.inputFormat
- The input format. Must be one of the formats returned bygetSupportedInputFormats()
.outputStream
- The output configuration file, nevernull
.outputFormat
- The output format. Must be one of the formats returned bygetSupportedOutputFormats()
.- Throws:
ConfigurationConverterException
- If any kind of error occurs during the conversion process.
-
getSupportedInputFormats
Returns the list of supported input formats. -
getSupportedOutputFormats
Returns the list of supported output formats. -
getFormatDescriptions
Associates each supported format symbol with a description.For self-documentation purposes.
-