public final class FileUtils extends Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
addPathComponents(String p1,
String p2,
char sepchar) |
static File |
canonicalFile(File file) |
static String |
canonicalPath(File file) |
static String |
getTheRealPathBecauseCanonicalizeDoesNotFixCase(File f)
Canonicalize on Win32 doesn't fix the case of the file to match what is on disk.
|
static boolean |
isAbsolute(File f)
returns whether the file is absolute
if a security exception is thrown, always returns false
|
static byte[] |
toByteArray(InputStream in) |
static URI |
toURI(File f) |
public static String getTheRealPathBecauseCanonicalizeDoesNotFixCase(File f)
f
- A file.public static URI toURI(File f) throws URISyntaxException
URISyntaxException
public static byte[] toByteArray(InputStream in)
public static boolean isAbsolute(File f)
Copyright © 2016 The Apache Software Foundation. All rights reserved.