public class ScriptUtil extends Object
Constructor and Description |
---|
ScriptUtil() |
Modifier and Type | Method and Description |
---|---|
static File |
getFile(String... patternOrDescriptionFilters)
Retourne le nom du fichier entre dans la boite de dialogue.
|
static String |
readAsString(File file)
Reads the contents of a file into a String.
|
static void |
writeString(File file,
String content)
Writes a String to a file creating the file if it does not exist.
|
public static String readAsString(File file) throws IOException
file
- the file to read, must not be null
null
IOException
public static void writeString(File file, String content) throws IOException
file
- the file to writecontent
- the content to write to the fileIOException
public static File getFile(String... patternOrDescriptionFilters)
patternOrDescriptionFilters
- les filtres a utiliser, les chaines doivent etre données
par deux, le pattern du filtre + la description du filtreCopyright © 1999–2020 CodeLutin. All rights reserved.