public class FileInfoDssBuilder
extends java.lang.Object
NOTE: This implementation is not using file system abstraction and therefore doesn't support
special handling for HDF5 containers or data set containers. In cases when such a support would
be required use HierarchicalFileInfoDssBuilder.
| Constructor and Description |
|---|
FileInfoDssBuilder(java.lang.String dataSetRoot,
java.lang.String relativeRoot)
Constructor for FileInfoDssFactory
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendFileInfosForFile(java.io.File requestedFile,
java.util.ArrayList<FileInfoDssDTO> list,
boolean isRecursive)
Append file info for the requested file or file hierarchy.
|
static java.util.List<FileInfoDssDTO> |
getFileInfos(java.io.File dataSetContents)
Return a list of
FileInfoDssDTO objects corresponding to all files existing within a
certain folder. |
public FileInfoDssBuilder(java.lang.String dataSetRoot,
java.lang.String relativeRoot)
dataSetRoot - The root of the directory structure; used to determine the path for
FileInfoDss objectspublic static java.util.List<FileInfoDssDTO> getFileInfos(java.io.File dataSetContents)
FileInfoDssDTO objects corresponding to all files existing within a
certain folder. The list is accumulated recursively.public void appendFileInfosForFile(java.io.File requestedFile,
java.util.ArrayList<FileInfoDssDTO> list,
boolean isRecursive)
throws java.io.IOException
requestedFile - A file known to be accessible by the userlist - The list the files infos are appended toisRecursive - If true, directories will be recursively appended to the listjava.io.IOException