com.google.clearsilver.jsilver.data
Interface DataFactory

All Known Implementing Classes:
HDFDataFactory

public interface DataFactory

Loads data from resources.


Method Summary
 Data createData()
          Create new Data instance, ready to be populated.
 Parser getParser()
          Returns the Parser used by this factory to parse the HDF content.
 Data loadData(String dataFileName, ResourceLoader resourceLoader)
          Loads data in Hierarchical Data Format (HDF) into a new Data object.
 void loadData(String dataFileName, ResourceLoader resourceLoader, Data output)
          Loads data in Hierarchical Data Format (HDF) into an existing Data object.
 

Method Detail

createData

Data createData()
Create new Data instance, ready to be populated.


loadData

void loadData(String dataFileName,
              ResourceLoader resourceLoader,
              Data output)
              throws JSilverBadSyntaxException,
                     IOException
Loads data in Hierarchical Data Format (HDF) into an existing Data object.

Throws:
JSilverBadSyntaxException
IOException

loadData

Data loadData(String dataFileName,
              ResourceLoader resourceLoader)
              throws IOException
Loads data in Hierarchical Data Format (HDF) into a new Data object.

Throws:
IOException

getParser

Parser getParser()
Returns the Parser used by this factory to parse the HDF content.

Returns:


Copyright © 2010-2012 Google. All Rights Reserved.