本文整理了Java中org.eclipse.jgit.util.FileUtils.getLength()
方法的一些代码示例,展示了FileUtils.getLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.getLength()
方法的具体详情如下:
包路径:org.eclipse.jgit.util.FileUtils
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!