Summer.Batch.Common.Util.IPropertiesPersister Interface Reference

Strategy interface for persisting a NameValueCollection, allowing for pluggable parsing strategies. More...

Inheritance diagram for Summer.Batch.Common.Util.IPropertiesPersister:
Summer.Batch.Common.Util.DefaultPropertiesPersister

Public Member Functions

void Load (NameValueCollection properties, TextReader reader)
 Load properties from a text reader. More...
 
void Store (NameValueCollection properties, TextWriter writer)
 Writes properties to a text writer. More...
 

Detailed Description

Strategy interface for persisting a NameValueCollection, allowing for pluggable parsing strategies.

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

Member Function Documentation

void Summer.Batch.Common.Util.IPropertiesPersister.Load ( NameValueCollection  properties,
TextReader  reader 
)

Load properties from a text reader.

Parameters
propertiesThe NameValueCollection where to store the properties.
readerThe TextReader to read the properties from.
Exceptions
IOException in case of I/O errors

Implemented in Summer.Batch.Common.Util.DefaultPropertiesPersister.

void Summer.Batch.Common.Util.IPropertiesPersister.Store ( NameValueCollection  properties,
TextWriter  writer 
)

Writes properties to a text writer.

Parameters
propertiesThe properties to write.
writerThe TextWriter to write the properties to.
Exceptions
IOException in case of I/O errors

Implemented in Summer.Batch.Common.Util.DefaultPropertiesPersister.


The documentation for this interface was generated from the following file:
  • Summer.Batch.Common/Util/IPropertiesPersister.cs