Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.services.messages
Interface PropertiesFileParser

All Known Implementing Classes:
  PropertiesFileParserImpl

    public interface PropertiesFileParser

Used when constructing a component's `Messages` object. Responsible for reading the contents of an individual `Resource`.

Since:
  5.2.0

Method Summary
`java.util.Map<java.lang.String,java.lang.String>` | `parsePropertiesFile(Resource resource)` Read the contents of the file (which is expected to exist) and return it as a Map of string keys and values (as `CaseInsensitiveMap` should be used.

Method Detail

### parsePropertiesFile

    java.util.Map<java.lang.String,java.lang.String> parsePropertiesFile(Resource resource)
                                                                         throws java.io.IOException

  Read the contents of the file (which is expected to exist) and return it as a Map of string keys and values (as `CaseInsensitiveMap` should be used. The implementation should not attempt to cache any values (caching occurs at a higher level, as does reload logic).

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.