com.generationjava.util
Class CommentedOrderedProperties
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
com.generationjava.util.OrderedProperties
com.generationjava.util.CommentedOrderedProperties
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- public class CommentedOrderedProperties
- extends OrderedProperties
java.util.Properties stores keys and values, but it does not store them in
an ordered way. Annoyingly, there is no easy way to splice this feature in,
rather it leads to a rewrite of most of the methods and the creation.
This is that rewrite.
- See Also:
- Serialized Form
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, putAll, rehash, size, toString, values |
CommentedOrderedProperties
public CommentedOrderedProperties()
CommentedOrderedProperties
public CommentedOrderedProperties(Properties props)
createCommentedOrderedProperties
public static CommentedOrderedProperties createCommentedOrderedProperties(File file)
keySet
public Set keySet()
- Specified by:
keySet in interface Map- Overrides:
keySet in class OrderedProperties
save
public void save(OutputStream outstrm,
String header)
- Currently will write out defaults as well, which is not
in the specification.
- Overrides:
save in class OrderedProperties
store
public void store(OutputStream outstrm,
String header)
throws IOException
- Currently will write out defaults as well, which is not
in the specification.
- Overrides:
store in class OrderedProperties
- Throws:
IOException
setCommentChar
public void setCommentChar(char ch)
getCommentChar
public char getCommentChar()
addComment
public void addComment(String str)
addComment
public void addComment(char ch,
String str)
addSeparator
public void addSeparator()
wordWrapComment
public void wordWrapComment(char ch,
String str,
int width)
insertComment
public void insertComment(char ch,
String str,
Object key)
Copyright © 2000-2005 OSJava. All Rights Reserved.