com.google.clearsilver.jsilver.data
Class HDFDataFactory

java.lang.Object
  extended by com.google.clearsilver.jsilver.data.HDFDataFactory
All Implemented Interfaces:
DataFactory

public class HDFDataFactory
extends Object
implements DataFactory

Loads data in Hierarchical Data Format (HDF) into Data objects.


Constructor Summary
HDFDataFactory(boolean ignoreAttributes)
           
HDFDataFactory(boolean ignoreAttributes, StringInternStrategy stringInternStrategy)
           
HDFDataFactory(ParserFactory hdfParserFactory, boolean ignoreAttributes)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDFDataFactory

public HDFDataFactory(boolean ignoreAttributes)

HDFDataFactory

public HDFDataFactory(boolean ignoreAttributes,
                      StringInternStrategy stringInternStrategy)

HDFDataFactory

public HDFDataFactory(ParserFactory hdfParserFactory,
                      boolean ignoreAttributes)
Method Detail

createData

public Data createData()
Description copied from interface: DataFactory
Create new Data instance, ready to be populated.

Specified by:
createData in interface DataFactory

loadData

public void loadData(String dataFileName,
                     ResourceLoader resourceLoader,
                     Data output)
              throws JSilverBadSyntaxException,
                     IOException
Description copied from interface: DataFactory
Loads data in Hierarchical Data Format (HDF) into an existing Data object.

Specified by:
loadData in interface DataFactory
Throws:
JSilverBadSyntaxException
IOException

loadData

public Data loadData(String dataFileName,
                     ResourceLoader resourceLoader)
              throws IOException
Description copied from interface: DataFactory
Loads data in Hierarchical Data Format (HDF) into a new Data object.

Specified by:
loadData in interface DataFactory
Throws:
IOException

getParser

public Parser getParser()
Description copied from interface: DataFactory
Returns the Parser used by this factory to parse the HDF content.

Specified by:
getParser in interface DataFactory
Returns:


Copyright © 2010-2012 Google. All Rights Reserved.