@Named public class IoUtilities extends Object
| Constructor and Description |
|---|
IoUtilities() |
| Modifier and Type | Method and Description |
|---|---|
File |
createFile(File parent,
String child) |
String |
readFileToString(File file) |
InputStream |
resourceToInputStream(String name) |
String |
resourceToString(String name) |
String |
toString(InputStream inputStream) |
void |
writeStringToFile(File file,
String contents) |
void |
writeStringToFile(File file,
String contents,
String encoding) |
public String readFileToString(File file) throws IOException
IOExceptionpublic void writeStringToFile(File file, String contents) throws IOException
IOExceptionpublic void writeStringToFile(File file, String contents, String encoding) throws IOException
IOExceptionpublic String toString(InputStream inputStream) throws IOException
IOExceptionpublic String resourceToString(String name) throws IOException
IOExceptionpublic InputStream resourceToInputStream(String name)
Copyright © 2010–2018 Justin Searls. All rights reserved.