org.tridas.io.formats.csvmatrix
Class CSVMatrixReader

java.lang.Object
  extended by org.tridas.io.AbstractDendroFileReader
      extended by org.tridas.io.formats.csvmatrix.CSVMatrixReader

public class CSVMatrixReader
extends AbstractDendroFileReader


Constructor Summary
CSVMatrixReader()
           
 
Method Summary
 int getCurrentLineNumber()
          Gets the current line number of the reader.
 IMetadataFieldSet getDefaults()
          Get the default values for this reader that were given in loading the file.
 DendroFileFilter getDendroFileFilter()
           
 String getDescription()
          Get the description of the format
 String[] getFileExtensions()
          Returns a list of the file extensions for this file
 String getFullName()
          Get the full name of the format
 org.tridas.schema.TridasProject[] getProjects()
          Gets the parsed projects after they are loaded.
 String getShortName()
          Get the short name of the format
 org.tridas.schema.TridasTridas getTridasContainer()
           
protected  void parseFile(org.odftoolkit.odfdom.doc.OdfSpreadsheetDocument doc)
           
protected  void parseFile(String[] argFileString, IMetadataFieldSet argDefaultFields)
          Check this is a valid CSV file
protected  void resetReader()
          Reset the reader
 
Methods inherited from class org.tridas.io.AbstractDendroFileReader
addWarning, clearWarnings, constructDefaultMetadata, getDefaultFieldsClass, getOriginalFilename, getWarnings, loadFile, loadFile, loadFile, loadFile, loadFile, loadFile, reset, setOriginalFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVMatrixReader

public CSVMatrixReader()
Method Detail

getDendroFileFilter

public DendroFileFilter getDendroFileFilter()
Specified by:
getDendroFileFilter in class AbstractDendroFileReader

getDescription

public String getDescription()
Description copied from class: AbstractDendroFileReader
Get the description of the format

Specified by:
getDescription in class AbstractDendroFileReader
Returns:

getFileExtensions

public String[] getFileExtensions()
Description copied from class: AbstractDendroFileReader
Returns a list of the file extensions for this file

Specified by:
getFileExtensions in class AbstractDendroFileReader
Returns:

getFullName

public String getFullName()
Description copied from class: AbstractDendroFileReader
Get the full name of the format

Specified by:
getFullName in class AbstractDendroFileReader
Returns:

getShortName

public String getShortName()
Description copied from class: AbstractDendroFileReader
Get the short name of the format

Specified by:
getShortName in class AbstractDendroFileReader
Returns:

parseFile

protected void parseFile(String[] argFileString,
                         IMetadataFieldSet argDefaultFields)
                  throws InvalidDendroFileException
Check this is a valid CSV file

Specified by:
parseFile in class AbstractDendroFileReader
Throws:
InvalidDendroFileException

parseFile

protected void parseFile(org.odftoolkit.odfdom.doc.OdfSpreadsheetDocument doc)
                  throws InvalidDendroFileException
Throws:
InvalidDendroFileException

resetReader

protected void resetReader()
Description copied from class: AbstractDendroFileReader
Reset the reader

Specified by:
resetReader in class AbstractDendroFileReader

getCurrentLineNumber

public int getCurrentLineNumber()
Description copied from class: AbstractDendroFileReader
Gets the current line number of the reader. If errors occurred, this could help point towards the cause.

Specified by:
getCurrentLineNumber in class AbstractDendroFileReader
Returns:
the current line number

getDefaults

public IMetadataFieldSet getDefaults()
Description copied from class: AbstractDendroFileReader
Get the default values for this reader that were given in loading the file. If the loadFile method was never called, then this returns null.

Specified by:
getDefaults in class AbstractDendroFileReader
Returns:

getProjects

public org.tridas.schema.TridasProject[] getProjects()
Description copied from class: AbstractDendroFileReader
Gets the parsed projects after they are loaded.

Specified by:
getProjects in class AbstractDendroFileReader
See Also:
AbstractDendroFileReader.getProjects()

getTridasContainer

public org.tridas.schema.TridasTridas getTridasContainer()
Specified by:
getTridasContainer in class AbstractDendroFileReader
See Also:
AbstractDendroFileReader.getTridasContainer()


Copyright © 2011. All Rights Reserved.