public class FileUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileUtils.CopyFileVisitor |
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.io.File src,
java.io.File dest)
File copy, from Java Performance book
|
static void |
delete(java.io.File file) |
static java.io.InputStream |
dumpStream(java.io.InputStream in,
java.io.PrintStream dump,
boolean closeIn) |
static byte[] |
streamBytes(java.io.InputStream in,
boolean closeIn) |
static java.lang.String |
streamString(java.io.InputStream in,
boolean closeIn) |
static java.lang.String |
streamString(java.io.InputStream in,
boolean closeIn,
java.nio.charset.Charset charset) |
static void |
transfer(java.io.InputStream in,
java.io.OutputStream out,
boolean closeIn)
Fast stream transfer method
|
public static void copy(java.io.File src, java.io.File dest) throws java.io.IOException
src
- dest
- java.io.IOException
public static void transfer(java.io.InputStream in, java.io.OutputStream out, boolean closeIn) throws java.io.IOException
in
- out
- java.io.IOException
public static java.lang.String streamString(java.io.InputStream in, boolean closeIn) throws java.io.IOException
java.io.IOException
public static java.lang.String streamString(java.io.InputStream in, boolean closeIn, java.nio.charset.Charset charset) throws java.io.IOException
java.io.IOException
public static byte[] streamBytes(java.io.InputStream in, boolean closeIn) throws java.io.IOException
java.io.IOException
public static java.io.InputStream dumpStream(java.io.InputStream in, java.io.PrintStream dump, boolean closeIn) throws java.io.IOException
java.io.IOException
public static void delete(java.io.File file)
Copyright © 2021. All Rights Reserved.