Class HierarchicalFileInfoDssBuilder
- java.lang.Object
-
- ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.HierarchicalFileInfoDssBuilder
-
public class HierarchicalFileInfoDssBuilder extends java.lang.Object
Helper Class for creating FileInfoDss objects based on file system abstraction.
-
-
Constructor Summary
Constructors Constructor Description HierarchicalFileInfoDssBuilder(ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode listingRootNode)
Constructor for FileInfoDssFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendFileInfos(java.util.ArrayList<FileInfoDssDTO> list, boolean isRecursive)
Append file info starting from the listing root node.
-
-
-
Constructor Detail
-
HierarchicalFileInfoDssBuilder
public HierarchicalFileInfoDssBuilder(ch.systemsx.cisd.openbis.common.io.hierarchical_content.api.IHierarchicalContentNode listingRootNode)
Constructor for FileInfoDssFactory- Parameters:
listingRootNode
- node in the directory structure from which the recursive traversal starts
-
-
Method Detail
-
appendFileInfos
public void appendFileInfos(java.util.ArrayList<FileInfoDssDTO> list, boolean isRecursive) throws java.io.IOException
Append file info starting from the listing root node. Assumes that the parameters have been verified already.- Parameters:
list
- The list the files infos are appended toisRecursive
- If true, directories will be recursively appended to the list- Throws:
java.io.IOException
-
-