com.atlassian.jira.imports.csv
Interface CsvProvider

All Known Implementing Classes:
MindProdCsvProvider

public interface CsvProvider


Method Summary
 Collection getHeaderLine()
           
 org.apache.commons.collections.MultiMap getNextLine()
          Gets the next line as a Map.
 Collection getNextLineRaw()
           
 List getRestOfFile()
          Parses the rest of the FIle that has not been read.
 SetMultiHashMap readUniqueValues(Collection headers)
           
 void startSession()
           
 void stopSession()
           
 

Method Detail

startSession

void startSession()
                  throws ImportException
Throws:
ImportException

stopSession

void stopSession()
                 throws ImportException
Throws:
ImportException

getHeaderLine

Collection getHeaderLine()
                         throws ImportException
Throws:
ImportException

getNextLine

org.apache.commons.collections.MultiMap getNextLine()
                                                    throws ImportException
Gets the next line as a Map. The Keys are either the Headers read from readHeaderLine or simply the values if the mathod readHeaderLine() has not been invoked. Returns null if there are no more lines

Returns:
Map of String - String value pairs
Throws:
ImportException

getRestOfFile

List getRestOfFile()
                   throws ImportException
Parses the rest of the FIle that has not been read.

Returns:
List of Maps of String - String value pairs
Throws:
ImportException

getNextLineRaw

Collection getNextLineRaw()
                          throws ImportException
Throws:
ImportException

readUniqueValues

SetMultiHashMap readUniqueValues(Collection headers)
                                 throws ImportException
Throws:
ImportException


Copyright © 2002-2008 Atlassian. All Rights Reserved.