@Deprecated public final class Files extends Object
Constructor and Description |
---|
Files()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<File,File> |
canonical()
Deprecated.
|
static List<File> |
canonicalList(File dir)
Deprecated.
|
static File |
currentWorkingDirectory()
Deprecated.
|
static File |
getCanonicalFile(File file)
Deprecated.
|
static File |
getCanonicalFile(File parent,
String child)
Deprecated.
|
static File |
getCanonicalFile(String path)
Deprecated.
|
static com.google.common.base.Function<File,Long> |
lastModified()
Deprecated.
|
static com.google.common.base.Function<File,Long> |
length()
Deprecated.
|
static List<File> |
listFiles(File dir)
Deprecated.
Return an immutable list of files from
dir , sorted naturally |
static List<File> |
listFiles(File dir,
com.google.common.collect.Ordering<File> ordering)
Deprecated.
Return an immutable list of files from
dir , sorted by ordering |
static List<File> |
listFilesByLastModified(File dir)
Deprecated.
Return an immutable list of files from
dir , sorted by last modified timestamp |
static List<File> |
listFilesBySize(File dir)
Deprecated.
Return an immutable list of files from
dir , sorted by size |
static long |
sumFileLengths(Iterable<File> files)
Deprecated.
|
public Files()
public static long sumFileLengths(Iterable<File> files)
public static List<File> canonicalList(File dir)
public static File currentWorkingDirectory()
public static com.google.common.base.Function<File,Long> lastModified()
public static File getCanonicalFile(File file)
public static File getCanonicalFile(String path)
public static File getCanonicalFile(File parent, String child)
public static List<File> listFiles(File dir)
dir
, sorted naturallyIllegalArgumentException
- if dir is null, does not exist, or exists but is not a directorypublic static List<File> listFilesBySize(File dir)
dir
, sorted by sizeIllegalArgumentException
- if dir is null, does not exist, or exists but is not a directorypublic static List<File> listFilesByLastModified(File dir)
dir
, sorted by last modified timestampIllegalArgumentException
- if dir is null, does not exist, or exists but is not a directoryCopyright © 2010–2014 The Kuali Foundation. All rights reserved.