|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.util.property.FilePropertyReader
Reads properties from one or more files.
| Field Summary | |
protected String[] |
filenames
Array of filenames to load properties from |
| Constructor Summary | |
FilePropertyReader(String filename)
Construct a FilePropertyReader with a single filename to read from. |
|
FilePropertyReader(String[] filenames)
Construct a FilePropertyReader with an array of filenames to read from. |
|
| Method Summary | |
protected InputStream |
getInputStream(String filename)
Get an input stream for the given filename. |
protected void |
loadProperties(Properties props,
String filename)
Load properties from a file into a properties map. |
Map |
readProperties()
Read properties from each specified filename |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String[] filenames
| Constructor Detail |
public FilePropertyReader(String[] filenames)
filenames - Filenames to load properties frompublic FilePropertyReader(String filename)
filename - Filename to load properties from| Method Detail |
protected InputStream getInputStream(String filename) throws IOException
filename - File name to get input stream for.
IOException - Failed to get input stream for file.protected void loadProperties(Properties props, String filename) throws IOException
props - Properties map to load properties into.filename - Filename to read properties from.
IOException - Failed to load properties from filename.
IllegalArgumentException - Filename is invalid.public Map readProperties() throws PropertyException, IOException
readProperties in interface PropertyReaderPropertyException - Failed to read properties.
IOException - I/O error while reading properties.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||