org.springframework.util

Interface PropertiesPersister

  • All Known Implementing Classes:
    DefaultPropertiesPersister

    public interface PropertiesPersister
    Strategy interface for persisting java.util.Properties, allowing for pluggable parsing strategies.

    The default implementation is DefaultPropertiesPersister, providing the native parsing of java.util.Properties, but allowing for reading from any Reader and writing to any Writer (which allows to specify an encoding for a properties file).

    As of Spring 1.2.2, this interface also supports properties XML files, through the loadFromXml and storeToXml methods. The default implementations delegate to JDK 1.5's corresponding methods.

    Since:
    10.03.2004
    Author:
    Juergen Hoeller
    See Also:
    DefaultPropertiesPersister, Properties