| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the samefirst file f1, File second file f2)Return true if the content of both files is the same. |
| public static boolean | Returns: true if the samefirst stream is1, InputStream second stream is2)Return true if the content of both streams is the same. |
| public static long | Returns: number of bytes readinput stream source, OutputStream output stream destination)Copy the contents of the input stream to the output stream. |
| pack-priv static String | |
| public static String | Returns: The path after expanding the home directory, if needed.The path path)Attempts to expand paths that may contain unix-style home shorthand. |
| public static FileUtils | |
| public static FileUtils[] |
| IS_OS_WINDOWS | back to summary |
|---|---|
| pack-priv static final boolean IS_OS_WINDOWS | |
| FileUtils | back to summary |
|---|---|
| private FileUtils() | |
| contentEquals | back to summary |
|---|---|
| public static boolean contentEquals(File f1, File f2) throws IOException Return true if the content of both files is the same. | |
| contentEquals | back to summary |
|---|---|
| public static boolean contentEquals(InputStream is1, InputStream is2) throws IOException Return true if the content of both streams is the same.
| |
| copy | back to summary |
|---|---|
| public static long copy(InputStream source, OutputStream destination) throws IOException Copy the contents of the input stream to the output stream.
| |
| correctPath | back to summary |
|---|---|
| pack-priv static String correctPath(boolean isWindows, String path) | |
| expandUserHome | back to summary |
|---|---|
| public static String expandUserHome(final String path) Attempts to expand paths that may contain unix-style home shorthand. | |
| valueOf | back to summary |
|---|---|
| public static FileUtils valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FileUtils[] values() | |