public class IOUtils
extends org.apache.commons.io.IOUtils
| 构造器和说明 |
|---|
IOUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getJarImplVersion(Class clazz) |
static String |
getJarManifestValue(Class clazz,
String attrName) |
static URL |
getResource(String resource) |
static InputStream |
getResourceAsStream(String resource) |
static Enumeration<URL> |
getResources(String resource) |
static String |
getStackTrace(Throwable ex) |
static String |
read(InputStream in) |
static String |
read(Reader reader) |
static String |
read(Reader reader,
int length) |
static byte[] |
readByteArray(InputStream input) |
static byte[] |
readByteArrayFromResource(String resource) |
static String |
readFromResource(String resource) |
static byte[] |
toByteArray(File file) |
static String |
toString(Date date) |
static String |
toString(StackTraceElement[] stackTrace) |
static void |
write(InputStream in,
File file) |
static void |
write(InputStream in,
Path path) |
static void |
write(InputStream in,
Path path,
StandardCopyOption op) |
close, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, contentEquals, contentEquals, contentEqualsIgnoreEOL, copy, copy, copy, copy, copy, copy, copy, copy, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, lineIterator, lineIterator, lineIterator, read, read, read, read, readFully, readFully, readFully, readFully, readLines, readLines, readLines, readLines, skip, skip, skipFully, skipFully, toBufferedInputStream, toBufferedReader, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toCharArray, toCharArray, toCharArray, toCharArray, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeLines, writeLines, writeLines, writeLinespublic static byte[] toByteArray(File file)
public static InputStream getResourceAsStream(String resource)
public static Enumeration<URL> getResources(String resource)
public static String read(InputStream in)
public static String readFromResource(String resource) throws IOException
IOExceptionpublic static byte[] readByteArrayFromResource(String resource) throws IOException
IOExceptionpublic static byte[] readByteArray(InputStream input) throws IOException
IOExceptionpublic static String toString(StackTraceElement[] stackTrace)
public static void write(InputStream in, Path path)
public static void write(InputStream in, File file)
public static void write(InputStream in, Path path, StandardCopyOption op)
Copyright © 2014–2016. All rights reserved.