com.tomgibara.pronto.config.source
Interface PropertiesReader

All Known Implementing Classes:
DefaultPropertiesReader

public interface PropertiesReader

Implementations of this interface can be supplied to ConfigSource objects which obtain their data from binary streams to specify how properties are read from the data.

Author:
Tom Gibara

Method Summary
 java.util.Map<java.lang.String,java.lang.String> read(java.io.InputStream in)
          Reads the bytes from an input stream and returns a set of properties which have been extracted from it.
 

Method Detail

read

java.util.Map<java.lang.String,java.lang.String> read(java.io.InputStream in)
                                                      throws java.io.IOException
Reads the bytes from an input stream and returns a set of properties which have been extracted from it. This method exhausts the input stream but does not close it.

Parameters:
in - the input stream to be read
Returns:
the properties read from the supplied input stream
Throws:
java.io.IOException - if an exception occurs reading the stream


Copyright © 2006-2007 Tom Gibara. All Rights Reserved.