51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.engines.data.DataLoader< T > Interface Template Reference

Detailed Description

Used to load data from either a file or byte array into the format 'T'.

Parameters
<T> - type of object to load

Inheritance diagram for fiftyone.pipeline.engines.data.DataLoader< T >:

[legend]

Public Member Functions

T  loadData (String filePath, Class< T > type) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException
Load a new instance of T using the data in the file provided. More...
T  loadData (byte[] data, Class< T > type) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException
Load a new instance of T using the data in the byte array provided. More...

Member Function Documentation

◆ loadData() [1/2]

T fiftyone.pipeline.engines.data.DataLoader< T >.loadData ( String   filePath,
Class< T >   type  
) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException

Load a new instance of T using the data in the file provided.

Parameters
filePath - file to load from
type - the type of object to load
Returns
new instance of T
Exceptions
IOException -
IllegalAccessException -
InvocationTargetException -
InstantiationException -

Implemented in fiftyone.pipeline.engines.data.JsonLoader< T >.

◆ loadData() [2/2]

T fiftyone.pipeline.engines.data.DataLoader< T >.loadData ( byte []   data,
Class< T >   type  
) throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException

Load a new instance of T using the data in the byte array provided.

Parameters
data - byte array to load from
type - the type of object to load
Returns
new instance of T
Exceptions
IOException -
IllegalAccessException -
InvocationTargetException -
InstantiationException -

Implemented in fiftyone.pipeline.engines.data.JsonLoader< T >.