本文整理了Java中java.io.File.filenamesToFiles()
方法的一些代码示例,展示了File.filenamesToFiles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。File.filenamesToFiles()
方法的具体详情如下:
包路径:java.io.File
类名称:File
方法名:filenamesToFiles
[英]Converts a String[] containing filenames to a File[]. Note that the filenames must not contain slashes. This method is to remove duplication in the implementation of File.list's overloads.
[中]将包含文件名的字符串[]转换为文件[]。请注意,文件名不能包含斜杠。这种方法是为了消除文件执行中的重复。列表的重载。
代码示例来源:origin: robovm/robovm
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: robovm/robovm
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: ibinti/bugvm
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: MobiVM/robovm
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Returns an array of files contained in the directory represented by this
* file. The result is {@code null} if this file is not a directory. The
* paths of the files in the array are absolute if the path of this file is
* absolute, they are relative otherwise.
*
* @return an array of files or {@code null}.
*/
public File[] listFiles() {
return filenamesToFiles(list());
}
代码示例来源:origin: MobiVM/robovm
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: ibinti/bugvm
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Gets a list of the files in the directory represented by this file. This
* list is then filtered through a FilenameFilter and files with matching
* names are returned as an array of files. Returns {@code null} if this
* file is not a directory. If {@code filter} is {@code null} then all
* filenames match.
* <p>
* The entries {@code .} and {@code ..} representing the current and parent
* directories are not returned as part of the list.
*
* @param filter
* the filter to match names against, may be {@code null}.
* @return an array of files or {@code null}.
*/
public File[] listFiles(FilenameFilter filter) {
return filenamesToFiles(list(filter));
}
内容来源于网络,如有侵权,请联系作者删除!