public class SortedProperties extends Properties
| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding
l'encoding a utiliser pour lire et ecrire le properties.
|
protected boolean |
removeHeader
un drapeau pour savoir s'il faut enlever l'entete generere
|
defaults| Constructor and Description |
|---|
SortedProperties(Properties defaults) |
SortedProperties(String encoding) |
SortedProperties(String encoding,
boolean removeHeader) |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<Object> |
keys() |
SortedProperties |
load(File src)
Charge le properties a partir d'un fichier.
|
void |
store(File dst)
Sauvegarde le properties dans un fichier, sans commentaire et en utilisant l'encoding declare.
|
static <O> List<O> |
toGenericList(List<?> list,
Class<O> type)
Permet de convertir une liste non typee, en une liste typee.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuesprotected String encoding
protected boolean removeHeader
public SortedProperties(String encoding)
public SortedProperties(String encoding, boolean removeHeader)
public SortedProperties(Properties defaults)
public SortedProperties load(File src) throws IOException
src - le fichier src a charger en utilisant l'encoding declareIOException - if any io pbpublic void store(File dst) throws IOException
dst - the fichier de destinationIOException - if any io pbpublic static <O> List<O> toGenericList(List<?> list, Class<O> type) throws IllegalArgumentException
O - le type des objets de la listelist - la liste a convertirtype - le type des elements de la listeIllegalArgumentException - si un element de la liste en entree
n'est pas en adequation avec le type
voulue.Copyright © 2010–2019 MojoHaus. All rights reserved.