|Modifier and Type||Method and Description|
Reads an object-collection from a path (or path prefix) trying different methods to read the objects.
public static ObjectCollection createFromPath(Path path) throws DeserializationFailedException
The following order is used to look for an object-mask collection:
.h5it is read as a HDF5 object-mask collection.
.h5is suffixed, and if this path exists, it is read as a HDF5 object-mask collection.
In the case of 3, if the path does not exist, but it is the subpath of an
ObjectCollection directory which does then a special case occurs. An empty
ObjectCollection is returned.
path- path or (or path missing a
.h5extension) used to search for an object-collection using the rules above
DeserializationFailedException- if no objects are found at this path, or anything else prevents their deserialization.
public static CheckedSupplier<ObjectCollection,OperationFailedException> createFromPathCached(CheckedSupplier<Path,OperationFailedException> path)
public static boolean hasHdf5Extension(Path path)
Copyright © 2010–2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.