| Constructor and Description |
|---|
TextFile() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bytesToFile(byte[] bytes,
String path) |
static String |
fileToString(String src) |
static List<String> |
readAllLines(String path) |
static String |
streamToString(InputStream input) |
static void |
stringToFile(String content,
String path) |
static void |
stringToFileNoPrefix(String content,
String path) |
static void |
writeAllLines(String path,
List<String> lines) |
public TextFile()
public static List<String> readAllLines(String path) throws IOException
IOExceptionpublic static void writeAllLines(String path, List<String> lines) throws IOException
IOExceptionpublic static void stringToFile(String content, String path) throws IOException
IOExceptionpublic static void stringToFileNoPrefix(String content, String path) throws IOException
IOExceptionpublic static String fileToString(String src) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic static String streamToString(InputStream input) throws IOException
IOExceptionpublic static void bytesToFile(byte[] bytes, String path) throws IOException
IOExceptionCopyright © 2014–2017 University Health Network. All rights reserved.