public abstract class FileCopyUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BUFFER_SIZE |
| 构造器和说明 |
|---|
FileCopyUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copy(byte[] in,
File out) |
static void |
copy(byte[] in,
OutputStream out) |
static int |
copy(File in,
File out) |
static int |
copy(InputStream in,
OutputStream out) |
static int |
copy(Reader in,
Writer out) |
static void |
copy(String in,
Writer out) |
static byte[] |
copyToByteArray(File in) |
static byte[] |
copyToByteArray(InputStream in) |
static String |
copyToString(Reader in) |
public static final int BUFFER_SIZE
public static int copy(File in, File out) throws IOException
IOExceptionpublic static void copy(byte[] in,
File out)
throws IOException
IOExceptionpublic static byte[] copyToByteArray(File in) throws IOException
IOExceptionpublic static int copy(InputStream in, OutputStream out) throws IOException
IOExceptionpublic static void copy(byte[] in,
OutputStream out)
throws IOException
IOExceptionpublic static byte[] copyToByteArray(InputStream in) throws IOException
IOExceptionpublic static int copy(Reader in, Writer out) throws IOException
IOExceptionpublic static void copy(String in, Writer out) throws IOException
IOExceptionpublic static String copyToString(Reader in) throws IOException
IOExceptionCopyright © 2023. All rights reserved.