public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out) |
static File |
file(File f,
String... pathParts) |
static File |
file(String... pathParts) |
static List<Integer> |
intArrayToList(int[] ints) |
static int |
parseInt(String valueFor) |
static byte[] |
readBytes(InputStream is)
This method consumes an input stream and returns its content.
|
static <T> T[] |
reverse(T[] array) |
static URL |
url(String path) |
public static void copy(InputStream in, OutputStream out) throws IOException
IOExceptionpublic static byte[] readBytes(InputStream is) throws IOException
is - The input stream to read from.IOException - Error reading from stream.public static <T> T[] reverse(T[] array)
public static URL url(String path) throws MalformedURLException
MalformedURLExceptionpublic static int parseInt(String valueFor)
Copyright © 2016. All rights reserved.