public class FileHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileHelper.JsonFileFilter |
Modifier and Type | Method and Description |
---|---|
static String |
after(String text,
String after) |
static void |
findJsonFiles(File dir,
Set<File> found,
FileFilter filter) |
static String |
loadText(InputStream in)
Loads the entire stream into memory as a String and returns it.
|
static Map<String,String> |
parseAsMap(String data)
Parses the text as a map (eg key=value)
|
public static String loadText(InputStream in) throws IOException
IOException
public static Map<String,String> parseAsMap(String data)
data
- the datapublic static void findJsonFiles(File dir, Set<File> found, FileFilter filter)
Copyright © 2020 JBoss by Red Hat. All rights reserved.