Module org.hdfgroup.hdfview
Package hdf.view.TableView

# Class DataProviderFactory

Object
hdf.view.TableView.DataProviderFactory

public class DataProviderFactory extends Object
A Factory class to return a concrete class implementing the IDataProvider interface in order to provide data for a NatTable.

Version:
  1.0 2/9/2019
Author:
  Jordan T. Henderson

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `DataProviderFactory.HDFDataProvider`
  The base DataProvider which pulls data from a given Array object using direct indices.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DataProviderFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static DataProviderFactory.HDFDataProvider`
  `getDataProvider(DataFormat dataObject, Object dataBuf, boolean dataTransposed)`
  Get the Data Display Provider for the supplied data object

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DataProviderFactory

    public DataProviderFactory()

- ## Method Details

  - ### getDataProvider

    public static DataProviderFactory.HDFDataProvider getDataProvider(DataFormat dataObject, Object dataBuf, boolean dataTransposed) throws Exception
    Get the Data Display Provider for the supplied data object
    Parameters:
      `dataObject` - the data object
      `dataBuf` - the data buffer to use
      `dataTransposed` - if the data should be transposed
    Returns:
      the provider instance
    Throws:
      `Exception` - if a failure occurred