public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(InputStream stream) |
static void |
closeQuietly(OutputStream stream) |
static int |
copy(InputStream input,
OutputStream output)
Copies bytes from the input stream to the output stream
|
static List<String> |
getResourceNamesFromDir(File dir,
String extension) |
static List<String> |
getResourceNamesFromJAR(String path,
String extension,
Class<?> clazz)
Retrieves a set of resource names from a JAR file (the code source for
the given Java class)
|
static int |
readInteger(URL src,
int radix) |
public static void closeQuietly(InputStream stream)
public static void closeQuietly(OutputStream stream)
public static int copy(InputStream input, OutputStream output) throws IOException
input - output - IOExceptionpublic static List<String> getResourceNamesFromDir(File dir, String extension)
public static List<String> getResourceNamesFromJAR(String path, String extension, Class<?> clazz) throws IOException
path - extension - clazz - IOExceptionpublic static int readInteger(URL src, int radix) throws IOException
IOExceptionCopyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.