org.springframework.core.convert.support
Class PropertiesToStringConverter

java.lang.Object
  extended by org.springframework.core.convert.support.PropertiesToStringConverter
All Implemented Interfaces:
Converter<java.util.Properties,java.lang.String>

final class PropertiesToStringConverter
extends java.lang.Object
implements Converter<java.util.Properties,java.lang.String>

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.

Since:
3.0
Author:
Keith Donald

Constructor Summary
PropertiesToStringConverter()
           
 
Method Summary
 java.lang.String convert(java.util.Properties source)
          Convert the source of type S to target type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesToStringConverter

PropertiesToStringConverter()
Method Detail

convert

public java.lang.String convert(java.util.Properties source)
Description copied from interface: Converter
Convert the source of type S to target type T.

Specified by:
convert in interface Converter<java.util.Properties,java.lang.String>
Parameters:
source - the source object to convert, which must be an instance of S
Returns:
the converted object, which must be an instance of T