org.eclipse.jgit.util.FileUtils.getLength()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.eclipse.jgit.util.FileUtils.getLength()方法的一些代码示例,展示了FileUtils.getLength()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.getLength()方法的具体详情如下:
包路径:org.eclipse.jgit.util.FileUtils
类名称:FileUtils
方法名:getLength

FileUtils.getLength介绍

[英]Get file length
[中]获取文件长度

代码示例

代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * 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);
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

/**
 * 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);
}

代码示例来源:origin: berlam/github-bucket

/**
 * 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);
}

代码示例来源:origin: sonia.jgit/org.eclipse.jgit

/**
 * @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);
}

相关文章