public class HDF5IOAdapterFactory
extends java.lang.Object
| Constructor and Description |
|---|
HDF5IOAdapterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ch.systemsx.cisd.base.io.IInputStream |
asIInputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
IInputStream. |
static ch.systemsx.cisd.base.io.IInputStream |
asIInputStream(IHDF5Reader reader,
java.lang.String dataSetPath)
Creates an adapter of the reader as an
IInputStream. |
static java.io.InputStream |
asInputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
InputStream. |
static java.io.InputStream |
asInputStream(IHDF5Reader reader,
java.lang.String dataSetPath)
Creates an adapter of the reader as an
InputStream. |
static ch.systemsx.cisd.base.io.IOutputStream |
asIOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
IOutputStream. |
static ch.systemsx.cisd.base.io.IOutputStream |
asIOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the hdf5File as an
IOutputStream. |
static ch.systemsx.cisd.base.io.IOutputStream |
asIOutputStream(IHDF5Writer writer,
java.lang.String dataSetPath)
Creates an adapter of the writer as an
IOutputStream. |
static ch.systemsx.cisd.base.io.IOutputStream |
asIOutputStream(IHDF5Writer writer,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the writer as an
IOutputStream. |
static java.io.OutputStream |
asOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
IOutputStream. |
static java.io.OutputStream |
asOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the hdf5File as an
OutputStream. |
static java.io.OutputStream |
asOutputStream(IHDF5Writer writer,
java.lang.String dataSetPath)
Creates an adapter of the writer as an
IOutputStream. |
static java.io.OutputStream |
asOutputStream(IHDF5Writer writer,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the writer as an
OutputStream. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFile(java.io.File hdf5File,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the hdf5File as an
HDF5DataSetRandomAccessFile in
read/write mode. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFile(IHDF5Reader reader,
java.lang.String dataSetPath)
Creates an adapter of the reader as an
HDF5DataSetRandomAccessFile. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFile(IHDF5Writer writer,
java.lang.String dataSetPath)
Creates an adapter of the writer as an
HDF5DataSetRandomAccessFile. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFile(IHDF5Writer writer,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
Creates an adapter of the writer as an
HDF5DataSetRandomAccessFile. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFileReadOnly(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
HDF5DataSetRandomAccessFile in
read-only mode. |
static HDF5DataSetRandomAccessFile |
asRandomAccessFileReadWrite(java.io.File hdf5File,
java.lang.String dataSetPath)
Creates an adapter of the hdf5File as an
HDF5DataSetRandomAccessFile in
read/write mode. |
public static ch.systemsx.cisd.base.io.IOutputStream asIOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
IOutputStream.
If the dataset does not yet exist, it will create a chunked opaque dataset with a chunk size
of 1MB and an opaque tag FILE.
hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.IOutputStream.public static ch.systemsx.cisd.base.io.IOutputStream asIOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
IOutputStream.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.IOutputStream.public static HDF5DataSetRandomAccessFile asRandomAccessFileReadWrite(java.io.File hdf5File, java.lang.String dataSetPath)
HDF5DataSetRandomAccessFile in
read/write mode.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.HDF5DataSetRandomAccessFile.public static java.io.OutputStream asOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath,
HDF5GenericStorageFeatures creationStorageFeature,
int chunkSize,
java.lang.String opaqueTagOrNull)
OutputStream.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.OutputStream.public static java.io.OutputStream asOutputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
IOutputStream.
If the dataset does not yet exist, it will create a chunked opaque dataset with a chunk size
of 1MB and an opaque tag FILE.
hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.OutputStream.public static HDF5DataSetRandomAccessFile asRandomAccessFile(java.io.File hdf5File, java.lang.String dataSetPath, HDF5GenericStorageFeatures creationStorageFeature, int chunkSize, java.lang.String opaqueTagOrNull)
HDF5DataSetRandomAccessFile in
read/write mode.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.HDF5DataSetRandomAccessFile.public static ch.systemsx.cisd.base.io.IInputStream asIInputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
IInputStream.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.IInputStream.public static java.io.InputStream asInputStream(java.io.File hdf5File,
java.lang.String dataSetPath)
InputStream.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.InputStream.public static HDF5DataSetRandomAccessFile asRandomAccessFileReadOnly(java.io.File hdf5File, java.lang.String dataSetPath)
HDF5DataSetRandomAccessFile in
read-only mode.hdf5File - The HDF5 file to create the adapter for.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.HDF5DataSetRandomAccessFile.public static ch.systemsx.cisd.base.io.IOutputStream asIOutputStream(IHDF5Writer writer, java.lang.String dataSetPath)
IOutputStream.
If the dataset does not yet exist, it will create a chunked opaque dataset with a chunk size
of 1MB and an opaque tag FILE.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.IOutputStream.public static ch.systemsx.cisd.base.io.IOutputStream asIOutputStream(IHDF5Writer writer, java.lang.String dataSetPath, HDF5GenericStorageFeatures creationStorageFeature, int chunkSize, java.lang.String opaqueTagOrNull)
IOutputStream.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.IOutputStream.public static java.io.OutputStream asOutputStream(IHDF5Writer writer, java.lang.String dataSetPath)
IOutputStream.
If the dataset does not yet exist, it will create a chunked opaque dataset with a chunk size
of 1MB and an opaque tag FILE.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.OutputStream.public static java.io.OutputStream asOutputStream(IHDF5Writer writer, java.lang.String dataSetPath, HDF5GenericStorageFeatures creationStorageFeature, int chunkSize, java.lang.String opaqueTagOrNull)
OutputStream.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.OutputStream.public static HDF5DataSetRandomAccessFile asRandomAccessFile(IHDF5Writer writer, java.lang.String dataSetPath, HDF5GenericStorageFeatures creationStorageFeature, int chunkSize, java.lang.String opaqueTagOrNull)
HDF5DataSetRandomAccessFile.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.creationStorageFeature - If the dataset does not yet exist, use this value as the
storage features when creating it.chunkSize - If the dataset does not yet exist, use this value as the chunk size.opaqueTagOrNull - If the dataset does not yet exist and this value is not
null, then an opaque dataset will be created using this value will be
used as opaque tag.HDF5DataSetRandomAccessFile.public static HDF5DataSetRandomAccessFile asRandomAccessFile(IHDF5Writer writer, java.lang.String dataSetPath)
HDF5DataSetRandomAccessFile.
Note that returned object is buffered. Do not access dataSetPath by directly accessing writer while this object is used or else the behavior is undefined!
writer - The HDF5 writer to create the adapter for. The writer will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.HDF5DataSetRandomAccessFile.public static ch.systemsx.cisd.base.io.IInputStream asIInputStream(IHDF5Reader reader, java.lang.String dataSetPath)
IInputStream.reader - The HDF5 reader to create the adapter for. The reader will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.IInputStream.public static java.io.InputStream asInputStream(IHDF5Reader reader, java.lang.String dataSetPath)
InputStream.reader - The HDF5 reader to create the adapter for. The reader will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.InputStream.public static HDF5DataSetRandomAccessFile asRandomAccessFile(IHDF5Reader reader, java.lang.String dataSetPath)
HDF5DataSetRandomAccessFile.reader - The HDF5 reader to create the adapter for. The reader will not be closed
when the returned object is closed.dataSetPath - The path of the HDF5 dataset in the HDF5 container to use as a file.HDF5DataSetRandomAccessFile.