public class SimulatorUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIMULATOR_GENERATED_MIN_PORT
Port max privilégié (besoin de droit particulier pour qu'une application se binde dessus)
|
| Constructor and Description |
|---|
SimulatorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fileExists(java.lang.String path)
Méthode permettant de vérifier qu'un fichier (ou répertoire) existe
|
static int |
findAvailablePortExcept(int... excludes)
Methode de recherche des ports libres excluant ceux du tableau en parametre
|
static java.io.File |
getFile(java.lang.String path)
Méthode permettant de construire un fichier à partir d'un chemin
|
static java.lang.String |
getResolvedPath(java.lang.String rawPath)
Méthode permettant d'obtenir un chemin resolu par Spring
|
static boolean |
isDirectory(java.lang.String path)
Méthode permettant de vérifier chemin représente un repertoire
|
static boolean |
isExecutable(java.lang.String path)
Méthode permettant de vérifier chemin représente un fichier/repertoire en execution
|
static boolean |
isFile(java.lang.String path)
Méthode permettant de vérifier chemin représente un fichier
|
static boolean |
isHidden(java.lang.String path)
Méthode permettant de vérifier chemin représente un fichier/repertoire caché
|
static boolean |
isReadeable(java.lang.String path)
Méthode permettant de vérifier chemin représente un fichier/repertoire en lecture
|
static boolean |
isValidJson(java.lang.String json)
Methode permettant de tester si une chaine est au format JSON
|
static boolean |
isWriteable(java.lang.String path)
Méthode permettant de vérifier chemin représente un fichier/repertoire en ecriture
|
public static final int SIMULATOR_GENERATED_MIN_PORT
public static boolean isExecutable(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean isWriteable(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean isReadeable(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean isHidden(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean isFile(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean isDirectory(java.lang.String path)
path - Chemin du fichier/repertoirepublic static boolean fileExists(java.lang.String path)
path - Chemin du fichier/repertoirepublic static java.io.File getFile(java.lang.String path)
path - Chemin sourcepublic static java.lang.String getResolvedPath(java.lang.String rawPath)
rawPath - Chemin brutpublic static boolean isValidJson(java.lang.String json)
json - Chaine a testerpublic static int findAvailablePortExcept(int... excludes)
excludes - Tableau des ports exclusCopyright © 2019 Leadware. All Rights Reserved.