public class IOHelper extends Object
| Constructor and Description |
|---|
IOHelper() |
| Modifier and Type | Method and Description |
|---|---|
static File |
find(File parent,
String name) |
static String |
get(String uri,
String apiKey) |
static byte[] |
load(InputStream in) |
static byte[] |
load(String file) |
static String |
post(String uri,
String apiKey) |
static void |
save(String path,
String contents) |
static String |
upload(String uri,
String apiKey,
String file) |
public static byte[] load(String file) throws IOException
IOExceptionpublic static File find(File parent, String name) throws IOException
IOExceptionpublic static void save(String path, String contents) throws IOException
IOExceptionpublic static byte[] load(InputStream in) throws IOException
IOExceptionpublic static String get(String uri, String apiKey) throws IOException
IOExceptionpublic static String post(String uri, String apiKey) throws IOException
IOExceptionpublic static String upload(String uri, String apiKey, String file) throws IOException
IOExceptionCopyright © 2016–2018. All rights reserved.