public final class FileUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
BSLASH
the back slash *
|
private static java.lang.String |
FSLASH
the forward slash *
|
private static java.lang.String |
SEPARATOR
the separator *
|
| Modifier | Constructor and Description |
|---|---|
private |
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
concatFilePath(java.lang.String[] args)
Concat the strings to be a valid file path
|
private static java.lang.String |
concatFilePath(java.lang.StringBuffer prefix,
java.lang.String suffix)
concat a meaning file path
|
static java.lang.String |
concatFilePath(java.lang.String prefix,
java.lang.String suffix)
Concat filepath with the prefix and suffix
|
static void |
copyStream(java.io.InputStream input,
java.io.OutputStream output,
int chunkSize)
Copy the input to the output.
|
private static final java.lang.String FSLASH
private static final java.lang.String BSLASH
private static final java.lang.String SEPARATOR
public static java.lang.String concatFilePath(java.lang.String[] args)
args - the stringpublic static java.lang.String concatFilePath(java.lang.String prefix,
java.lang.String suffix)
prefix - the prefixsuffix - the suffixprivate static java.lang.String concatFilePath(java.lang.StringBuffer prefix,
java.lang.String suffix)
prefix - the prefixsuffix - the suffixpublic static void copyStream(java.io.InputStream input,
java.io.OutputStream output,
int chunkSize)
throws java.io.IOException
input - the input streamoutput - the outputchunkSize - the chunk sizejava.io.IOException