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

pack-priv final Class PropertiesToStringConverter

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

Converts from a Properties to a String by calling Properties#store(java.io.OutputStream, String). Decodes with the ISO-8859-1 charset before returning the String.
Author
Keith Donald
Since
3.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
convert(Properties
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

PropertiesToStringConverterback to summary
pack-priv PropertiesToStringConverter()

Method Detail

convertback to summary
public String convert(Properties 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:Properties

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

Returns:String

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

Annotations
@Override