Top Description Constructors Methods
org.springframework.core.convert.support

pack-priv final Class StringToPropertiesConverter

extends Object
implements Converter<String, Properties>
Class Inheritance
All Implemented Interfaces
org.springframework.core.convert.converter.Converter
Imports
java.io.ByteArrayInputStream, java.nio.charset.StandardCharsets, java.util.Properties, org.springframework.core.convert.converter.Converter

Converts a String to a Properties by calling Properties#load(java.io.InputStream). Uses ISO-8559-1 encoding required by Properties.
Author
Keith Donald
Since
3.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Properties
convert(String
the source object to convert, which must be an instance of S (never null)
source
)

Implements org.springframework.core.convert.converter.Converter.convert.

Convert the source object of type S to target type T.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StringToPropertiesConverterback to summary
pack-priv StringToPropertiesConverter()

Method Detail

convertback to summary
public Properties convert(String source)

Implements org.springframework.core.convert.converter.Converter.convert.

Doc from org.springframework.core.convert.converter.Converter.convert.

Convert the source object of type S to target type T.

Parameters
source:String

the source object to convert, which must be an instance of S (never null)

Returns:Properties

the converted object, which must be an instance of T (potentially null)

Annotations
@Override