org.springframework.core.convert.support
Class StringToPropertiesConverter

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

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

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

Since:
3.0
Author:
Keith Donald

Constructor Summary
StringToPropertiesConverter()
           
 
Method Summary
 java.util.Properties convert(java.lang.String 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

StringToPropertiesConverter

StringToPropertiesConverter()
Method Detail

convert

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

Specified by:
convert in interface Converter<java.lang.String,java.util.Properties>
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