|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.nuiton.io.SortedProperties
public class SortedProperties
Permet d'avoir les fichiers de proprietes tries.
| Field Summary | |
|---|---|
protected String |
encoding
l'encoding a utiliser pour lire et ecrire le properties. |
protected char[] |
hexDigit
|
protected boolean |
removeHeader
un drapeau pour savoir s'il faut enlever l'entete generere |
protected boolean |
unicodeLower
A flag to write unicode using the a lower letter. |
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
SortedProperties(Properties defaults)
|
|
SortedProperties(String encoding)
|
|
SortedProperties(String encoding,
boolean removeHeader)
|
|
SortedProperties(String encoding,
boolean removeHeader,
boolean unicodeLower)
|
|
| Method Summary | |
|---|---|
Enumeration<Object> |
keys()
|
SortedProperties |
load(File src)
Charge le properties a partir d'un fichier. |
protected String |
saveConvert(String theString,
boolean escapeSpace,
boolean escapeUnicode)
|
void |
store(File dst)
Sauvegarde le properties dans un fichier, sans commentaire et en utilisant l'encoding declare. |
void |
store(OutputStream dst)
Sauvegarde le properties dans un fichier, sans commentaire en laissant java encode en unicode. |
void |
store(OutputStream out,
String comments)
|
protected void |
store0(BufferedWriter bw,
String comments,
boolean escUnicode)
|
protected char |
toHex(int nibble)
Convert a nibble to a hex character |
void |
writeComments(BufferedWriter bw,
String comments)
|
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String encoding
protected boolean removeHeader
protected final boolean unicodeLower
é instead of é.
protected final char[] hexDigit
| Constructor Detail |
|---|
public SortedProperties(String encoding)
public SortedProperties(String encoding,
boolean removeHeader)
public SortedProperties(String encoding,
boolean removeHeader,
boolean unicodeLower)
public SortedProperties(Properties defaults)
| Method Detail |
|---|
public Enumeration<Object> keys()
keys in class Hashtable<Object,Object>
public SortedProperties load(File src)
throws IOException
src - le fichier src a charger en utilisant l'encoding declare
IOException - if any io pb
public void store(File dst)
throws IOException
dst - the fichier de destination
IOException - if any io pb
public void store(OutputStream dst)
throws IOException
dst - le fichier de destination
IOException - if any io pb
public void store(OutputStream out,
String comments)
throws IOException
store in class PropertiesIOException
protected void store0(BufferedWriter bw,
String comments,
boolean escUnicode)
throws IOException
IOException
protected String saveConvert(String theString,
boolean escapeSpace,
boolean escapeUnicode)
public void writeComments(BufferedWriter bw,
String comments)
throws IOException
IOExceptionprotected char toHex(int nibble)
nibble - the nibble to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||