Java Doc for ExtendedProperties.java in  » Database-ORM » MMBase » org » mmbase » util » 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 » Database ORM » MMBase » org.mmbase.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.Properties
   org.mmbase.util.ExtendedProperties

ExtendedProperties
public class ExtendedProperties extends Properties (Code)
This is a flexible Properties version, it can handle saving of Properties with the comments that will stay in your file.
author:
   Jan van Oosterom
version:
   $Id: ExtendedProperties.java,v 1.11 2007/02/24 21:57:50 nklasens Exp $


Field Summary
protected  StringcommentPrefix
     The prefix of the comment in the Properties file.

Constructor Summary
public  ExtendedProperties()
    
public  ExtendedProperties(String filename)
     Create and read an ExtendedProperty from file.
public  ExtendedProperties(ExtendedProperties exProp)
     Create an ExtendedProperties with a Allready filled ExtendedProperty list.

Method Summary
public  Vector<String>getPropertyValues(String whichProp, String delimeter)
     return a Vector of Strings which is parsed from a specified Property.
public  voidgetProps(String filename)
     Read to this Property, the Properties from a file.
public synchronized  voidload(InputStream in)
     Loads properties from an InputStream.
public  Hashtable<Object, Object>readProperties(String filename)
     Read from Properties and return them.
public synchronized  voidsave(String filename)
     This routine does not only saves your Properties but also merges your comments if the file already exists if the file doesn't exists the will call the "normal" write routine.
public synchronized  Stringsave()
    
public synchronized  voidsaveProperties(String filename, Hashtable<Object, Object> propsToSave)
     save Properties to file.
public  ObjectsetProperty(String name, String value)
     Set the Property.
public  voidshowContents()
    

Field Detail
commentPrefix
protected String commentPrefix(Code)
The prefix of the comment in the Properties file. Everything after it will be treaded as comment




Constructor Detail
ExtendedProperties
public ExtendedProperties()(Code)
Extended Properties constructor



ExtendedProperties
public ExtendedProperties(String filename)(Code)
Create and read an ExtendedProperty from file.
Parameters:
  filename - The file from were to read.



ExtendedProperties
public ExtendedProperties(ExtendedProperties exProp)(Code)
Create an ExtendedProperties with a Allready filled ExtendedProperty list.
Parameters:
  exProp - The list that will be put in this ExtendedProperty.




Method Detail
getPropertyValues
public Vector<String> getPropertyValues(String whichProp, String delimeter)(Code)
return a Vector of Strings which is parsed from a specified Property.
Parameters:
  whichProp - The Property to get the list from.
Parameters:
  delimeter - The delimeter to split wichProp's value with.



getProps
public void getProps(String filename) throws IOException(Code)
Read to this Property, the Properties from a file.
Parameters:
  filename - The file were to read from



load
public synchronized void load(InputStream in) throws IOException(Code)
Loads properties from an InputStream. Uses "=" as delimeter between key and value. Does not uses a ":" as delimiter!
Parameters:
  in - the input stream
exception:
  IOException - Error when reading from input stream.



readProperties
public Hashtable<Object, Object> readProperties(String filename)(Code)
Read from Properties and return them.
Parameters:
  filename - The file from were to read the Properties.



save
public synchronized void save(String filename) throws IOException(Code)
This routine does not only saves your Properties but also merges your comments if the file already exists if the file doesn't exists the will call the "normal" write routine.
Parameters:
  filename - The file were to save to.



save
public synchronized String save()(Code)



saveProperties
public synchronized void saveProperties(String filename, Hashtable<Object, Object> propsToSave)(Code)
save Properties to file.
Parameters:
  filename - The File were to save them
Parameters:
  propsToSave - The Properties which to save.



setProperty
public Object setProperty(String name, String value)(Code)
Set the Property.
Parameters:
  name - the name of the Property (the part in front of the '=' in the Property file)
Parameters:
  value - the (new) value of the Property (the part after the '=' in the Property file)



showContents
public void showContents()(Code)
Dump the contents of this Property to your screen (for debugging)



Fields inherited from java.util.Properties
protected Properties defaults(Code)(Java Doc)

Methods inherited from java.util.Properties
public String getProperty(String key)(Code)(Java Doc)
public String getProperty(String key, String defaultValue)(Code)(Java Doc)
public void list(PrintStream out)(Code)(Java Doc)
public void list(PrintWriter out)(Code)(Java Doc)
public synchronized void load(Reader reader) throws IOException(Code)(Java Doc)
public synchronized void load(InputStream inStream) throws IOException(Code)(Java Doc)
public synchronized void loadFromXML(InputStream in) throws IOException, InvalidPropertiesFormatException(Code)(Java Doc)
public Enumeration propertyNames()(Code)(Java Doc)
public synchronized void save(OutputStream out, String comments)(Code)(Java Doc)
public synchronized Object setProperty(String key, String value)(Code)(Java Doc)
public void store(Writer writer, String comments) throws IOException(Code)(Java Doc)
public void store(OutputStream out, String comments) throws IOException(Code)(Java Doc)
public synchronized void storeToXML(OutputStream os, String comment) throws IOException(Code)(Java Doc)
public synchronized void storeToXML(OutputStream os, String comment, String encoding) throws IOException(Code)(Java Doc)
public Set<String> stringPropertyNames()(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.