public class DatasetFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
DatasetCollection |
createDatasetCollection()
Creates a dataset collection
|
FileAccess |
createFileDataset(java.lang.String datasetIdentifier,
java.lang.String datasetDescription)
Creates a file dataset based on the specified arguments.
|
StreamingAccess |
createStreamingDataset(java.lang.String datasetIdentifier,
java.lang.String datasetDescription)
Creates a streaming dataset based on the specified arguments.
|
Dataset |
getDataset(byte[] datasetBytes)
Reconstructs the dataset from a set of bytes
|
DatasetCollection |
getDatasetCollection(byte[] marshalledBytes)
Reconstruct the dataset collection from a byte[].
|
int |
getDatasetType(byte[] datasetBytes)
Retrieves the dataset type information from a stream of bytes.
|
FileAccess |
getFileDataset(byte[] marshalledBytes)
Reconstruct the file dataset from a byte[] representation of it.
|
static DatasetFactory |
getInstance()
Retrieve the singleton instance of the dataset factory
|
StreamingAccess |
getStreamingDataset(byte[] marshalledBytes)
Reconstruct the streaming dataset from a byte[] representation of it.
|
public static DatasetFactory getInstance()
public int getDatasetType(byte[] datasetBytes)
datasetBytes
- The byte[] representation of the datasetMarshallingException
- if there are problems with the retrieving information from
the dataset bytespublic Dataset getDataset(byte[] datasetBytes) throws DatasetException
datasetBytes
- The byte[] representation of the dataset.DatasetException
- If there are problems in reconstructing the datasetpublic DatasetCollection createDatasetCollection()
public DatasetCollection getDatasetCollection(byte[] marshalledBytes) throws DatasetException
marshalledBytes
- The byte[] representation of the datasetDatasetException
- If the are problems reconstructing the dataset.public StreamingAccess createStreamingDataset(java.lang.String datasetIdentifier, java.lang.String datasetDescription)
datasetIdentifier
- The identifier for the dataset.datasetDescription
- The description of the dataset.DatasetException
- If there are problems creating the streaming dataset.public StreamingAccess getStreamingDataset(byte[] marshalledBytes) throws DatasetException
marshalledBytes
- The byte[] representation of the streaming dataset.DatasetException
- If there are problems reconstructing the streaming dataset.public FileAccess createFileDataset(java.lang.String datasetIdentifier, java.lang.String datasetDescription)
datasetIdentifier
- The identifier for the dataset.datasetDescription
- The description of the dataset.DatasetException
- If there are problems creating the file dataset.public FileAccess getFileDataset(byte[] marshalledBytes) throws DatasetException
marshalledBytes
- The byte[] representation of the file dataset.DatasetException
- If there are problems reconstructing the streaming dataset.