Java Doc for XMLPropertiesConfiguration.java in  » Library » Apache-commons-configuration-1.4-src » org » apache » commons » configuration » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache commons configuration 1.4 src » org.apache.commons.configuration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.configuration.AbstractConfiguration
   org.apache.commons.configuration.BaseConfiguration
      org.apache.commons.configuration.AbstractFileConfiguration
         org.apache.commons.configuration.PropertiesConfiguration
            org.apache.commons.configuration.XMLPropertiesConfiguration

XMLPropertiesConfiguration
public class XMLPropertiesConfiguration extends PropertiesConfiguration (Code)
This configuration implements the XML properties format introduced in Java 5.0, see http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html. An XML properties file looks like this:
 <?xml version="1.0"?>
 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
 <properties>
 <comment>Description of the property list</comment>
 <entry key="key1">value1</entry>
 <entry key="key2">value2</entry>
 <entry key="key3">value3</entry>
 </properties>
 
The Java 5.0 runtime is not required to use this class. The default encoding for this configuration format is UTF-8. Note that unlike PropertiesConfiguration, XMLPropertiesConfiguration does not support includes.
author:
   Emmanuel Bourg
author:
   Alistair Young
version:
   $Revision: 439648 $, $Date: 2006-09-02 22:42:10 +0200 (Sa, 02 Sep 2006) $
since:
   1.1



Constructor Summary
public  XMLPropertiesConfiguration()
     Creates an empty XMLPropertyConfiguration object which can be used to synthesize a new Properties file by adding values and then saving().
public  XMLPropertiesConfiguration(String fileName)
     Creates and loads the xml properties from the specified file.
public  XMLPropertiesConfiguration(File file)
     Creates and loads the xml properties from the specified file.
public  XMLPropertiesConfiguration(URL url)
     Creates and loads the xml properties from the specified URL.

Method Summary
public  voidload(Reader in)
    
public  voidsave(Writer out)
    


Constructor Detail
XMLPropertiesConfiguration
public XMLPropertiesConfiguration()(Code)
Creates an empty XMLPropertyConfiguration object which can be used to synthesize a new Properties file by adding values and then saving(). An object constructed by this C'tor can not be tickled into loading included files because it cannot supply a base for relative includes.



XMLPropertiesConfiguration
public XMLPropertiesConfiguration(String fileName) throws ConfigurationException(Code)
Creates and loads the xml properties from the specified file. The specified file can contain "include" properties which then are loaded and merged into the properties.
Parameters:
  fileName - The name of the properties file to load.
throws:
  ConfigurationException - Error while loading the properties file



XMLPropertiesConfiguration
public XMLPropertiesConfiguration(File file) throws ConfigurationException(Code)
Creates and loads the xml properties from the specified file. The specified file can contain "include" properties which then are loaded and merged into the properties.
Parameters:
  file - The properties file to load.
throws:
  ConfigurationException - Error while loading the properties file



XMLPropertiesConfiguration
public XMLPropertiesConfiguration(URL url) throws ConfigurationException(Code)
Creates and loads the xml properties from the specified URL. The specified file can contain "include" properties which then are loaded and merged into the properties.
Parameters:
  url - The location of the properties file to load.
throws:
  ConfigurationException - Error while loading the properties file




Method Detail
load
public void load(Reader in) throws ConfigurationException(Code)



save
public void save(Writer out) throws ConfigurationException(Code)



Fields inherited from org.apache.commons.configuration.PropertiesConfiguration
final static String COMMENT_CHARS(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.PropertiesConfiguration
public Object clone()(Code)(Java Doc)
protected PropertiesConfigurationLayout createLayout()(Code)(Java Doc)
public String getHeader()(Code)(Java Doc)
public static String getInclude()(Code)(Java Doc)
public boolean getIncludesAllowed()(Code)(Java Doc)
public synchronized PropertiesConfigurationLayout getLayout()(Code)(Java Doc)
static boolean isCommentLine(String line)(Code)(Java Doc)
public synchronized void load(Reader in) throws ConfigurationException(Code)(Java Doc)
boolean propertyLoaded(String key, String value) throws ConfigurationException(Code)(Java Doc)
public void save(Writer writer) throws ConfigurationException(Code)(Java Doc)
public void setBasePath(String basePath)(Code)(Java Doc)
public void setHeader(String header)(Code)(Java Doc)
public static void setInclude(String inc)(Code)(Java Doc)
protected void setIncludesAllowed(boolean includesAllowed)(Code)(Java Doc)
public synchronized void setLayout(PropertiesConfigurationLayout layout)(Code)(Java Doc)
protected static String unescapeJava(String str, char delimiter)(Code)(Java Doc)

Fields inherited from org.apache.commons.configuration.AbstractFileConfiguration
final public static int EVENT_RELOAD(Code)(Java Doc)
protected boolean autoSave(Code)(Java Doc)
protected String basePath(Code)(Java Doc)
protected String fileName(Code)(Java Doc)
protected ReloadingStrategy strategy(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.AbstractFileConfiguration
public void addProperty(String key, Object value)(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
protected void enterNoReload()(Code)(Java Doc)
protected void exitNoReload()(Code)(Java Doc)
protected void fireEvent(int type, String propName, Object propValue, boolean before)(Code)(Java Doc)
public String getBasePath()(Code)(Java Doc)
public String getEncoding()(Code)(Java Doc)
public File getFile()(Code)(Java Doc)
public String getFileName()(Code)(Java Doc)
public Iterator getKeys()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public ReloadingStrategy getReloadingStrategy()(Code)(Java Doc)
public URL getURL()(Code)(Java Doc)
public boolean isAutoSave()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public void load() throws ConfigurationException(Code)(Java Doc)
public void load(String fileName) throws ConfigurationException(Code)(Java Doc)
public void load(File file) throws ConfigurationException(Code)(Java Doc)
public void load(URL url) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in) throws ConfigurationException(Code)(Java Doc)
public void load(InputStream in, String encoding) throws ConfigurationException(Code)(Java Doc)
protected void possiblySave()(Code)(Java Doc)
public void reload()(Code)(Java Doc)
public void save() throws ConfigurationException(Code)(Java Doc)
public void save(String fileName) throws ConfigurationException(Code)(Java Doc)
public void save(URL url) throws ConfigurationException(Code)(Java Doc)
public void save(File file) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out) throws ConfigurationException(Code)(Java Doc)
public void save(OutputStream out, String encoding) throws ConfigurationException(Code)(Java Doc)
public void setAutoSave(boolean autoSave)(Code)(Java Doc)
public void setBasePath(String basePath)(Code)(Java Doc)
public void setEncoding(String encoding)(Code)(Java Doc)
public void setFile(File file)(Code)(Java Doc)
public void setFileName(String fileName)(Code)(Java Doc)
public void setPath(String path)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setReloadingStrategy(ReloadingStrategy strategy)(Code)(Java Doc)
public void setURL(URL url)(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.BaseConfiguration
protected void addPropertyDirect(String key, Object value)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
protected void clearPropertyDirect(String key)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean containsKey(String key)(Code)(Java Doc)
public Iterator getKeys()(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)

Fields inherited from org.apache.commons.configuration.AbstractConfiguration
final protected static String END_TOKEN(Code)(Java Doc)
final public static int EVENT_ADD_PROPERTY(Code)(Java Doc)
final public static int EVENT_CLEAR(Code)(Java Doc)
final public static int EVENT_CLEAR_PROPERTY(Code)(Java Doc)
final public static int EVENT_READ_PROPERTY(Code)(Java Doc)
final public static int EVENT_SET_PROPERTY(Code)(Java Doc)
final protected static String START_TOKEN(Code)(Java Doc)

Methods inherited from org.apache.commons.configuration.AbstractConfiguration
public void addErrorLogListener()(Code)(Java Doc)
public void addProperty(String key, Object value)(Code)(Java Doc)
abstract protected void addPropertyDirect(String key, Object value)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public void clearProperty(String key)(Code)(Java Doc)
protected void clearPropertyDirect(String key)(Code)(Java Doc)
abstract public boolean containsKey(String key)(Code)(Java Doc)
protected ConfigurationInterpolator createInterpolator()(Code)(Java Doc)
public BigDecimal getBigDecimal(String key)(Code)(Java Doc)
public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)(Code)(Java Doc)
public BigInteger getBigInteger(String key)(Code)(Java Doc)
public BigInteger getBigInteger(String key, BigInteger defaultValue)(Code)(Java Doc)
public boolean getBoolean(String key)(Code)(Java Doc)
public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc)
public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc)
public byte getByte(String key)(Code)(Java Doc)
public byte getByte(String key, byte defaultValue)(Code)(Java Doc)
public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc)
public static char getDefaultListDelimiter()(Code)(Java Doc)
public static char getDelimiter()(Code)(Java Doc)
public double getDouble(String key)(Code)(Java Doc)
public double getDouble(String key, double defaultValue)(Code)(Java Doc)
public Double getDouble(String key, Double defaultValue)(Code)(Java Doc)
public float getFloat(String key)(Code)(Java Doc)
public float getFloat(String key, float defaultValue)(Code)(Java Doc)
public Float getFloat(String key, Float defaultValue)(Code)(Java Doc)
public int getInt(String key)(Code)(Java Doc)
public int getInt(String key, int defaultValue)(Code)(Java Doc)
public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc)
public ConfigurationInterpolator getInterpolator()(Code)(Java Doc)
abstract public Iterator getKeys()(Code)(Java Doc)
public Iterator getKeys(String prefix)(Code)(Java Doc)
public List getList(String key)(Code)(Java Doc)
public List getList(String key, List defaultValue)(Code)(Java Doc)
public char getListDelimiter()(Code)(Java Doc)
public Log getLogger()(Code)(Java Doc)
public long getLong(String key)(Code)(Java Doc)
public long getLong(String key, long defaultValue)(Code)(Java Doc)
public Long getLong(String key, Long defaultValue)(Code)(Java Doc)
public Properties getProperties(String key)(Code)(Java Doc)
public Properties getProperties(String key, Properties defaults)(Code)(Java Doc)
public short getShort(String key)(Code)(Java Doc)
public short getShort(String key, short defaultValue)(Code)(Java Doc)
public Short getShort(String key, Short defaultValue)(Code)(Java Doc)
public String getString(String key)(Code)(Java Doc)
public String getString(String key, String defaultValue)(Code)(Java Doc)
public String[] getStringArray(String key)(Code)(Java Doc)
public synchronized StrSubstitutor getSubstitutor()(Code)(Java Doc)
protected String interpolate(String base)(Code)(Java Doc)
protected Object interpolate(Object value)(Code)(Java Doc)
protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc)
public boolean isDelimiterParsingDisabled()(Code)(Java Doc)
abstract public boolean isEmpty()(Code)(Java Doc)
public boolean isThrowExceptionOnMissing()(Code)(Java Doc)
protected Object resolveContainerStore(String key)(Code)(Java Doc)
public static void setDefaultListDelimiter(char delimiter)(Code)(Java Doc)
public static void setDelimiter(char delimiter)(Code)(Java Doc)
public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code)(Java Doc)
public void setListDelimiter(char listDelimiter)(Code)(Java Doc)
public void setLogger(Log log)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code)(Java Doc)
public Configuration subset(String prefix)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.