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