/** * Get the length of a file or link, If the OS/JRE supports symbolic links * it's the length of the link, else the length of the target. * * @param path * a {@link java.io.File} object. * @return length of a file * @throws java.io.IOException * @since 3.0 */ public long length(File path) throws IOException { return FileUtils.getLength(path); }
/** * Get the length of a file or link, If the OS/JRE supports symbolic links * it's the length of the link, else the length of the target. * * @param path * @return length of a file * @throws IOException * @since 3.0 */ public long length(File path) throws IOException { return FileUtils.getLength(path); }
/** * Get the length of a file or link, If the OS/JRE supports symbolic links * it's the length of the link, else the length of the target. * * @param path * a {@link java.io.File} object. * @return length of a file * @throws java.io.IOException * @since 3.0 */ public long length(File path) throws IOException { return FileUtils.getLength(path); }
/** * @param path * @return length of the given file * @throws IOException * @deprecated Use {@link FileUtils#getLength(File)} instead */ @Deprecated public static long getLength(File path) throws IOException { return FileUtils.getLength(path); }