public class PropertiesConversionStrategy extends Object implements ConversionStrategy<Properties>
| Constructor and Description |
|---|
PropertiesConversionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Properties |
convertContent(InputStream inputStream,
String encoding)
Converts the content of the given stream into the target type.
|
String |
getDefaultFileExtension() |
Class<Properties> |
getTargetType() |
public Properties convertContent(InputStream inputStream, String encoding) throws IOException
ConversionStrategyconvertContent in interface ConversionStrategy<Properties>inputStream - The stream with the content, not nullencoding - The encoding to use when reading the stream, not nullIOExceptionpublic String getDefaultFileExtension()
getDefaultFileExtension in interface ConversionStrategy<Properties>public Class<Properties> getTargetType()
getTargetType in interface ConversionStrategy<Properties>Copyright © 2016. All Rights Reserved.