com.atlassian.jira.imports.csv
Interface CsvProvider

All Known Implementing Classes:
MindProdCsvProvider

public interface CsvProvider


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

Method Detail

startSession

void startSession()
                  throws ImportException
Throws:
ImportException

stopSession

void stopSession()
                 throws ImportException
Throws:
ImportException

getHeaderLine

java.util.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

java.util.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

java.util.Collection getNextLineRaw()
                                    throws ImportException
Throws:
ImportException

readUniqueValues

SetMultiHashMap readUniqueValues(java.util.Collection headers)
                                 throws ImportException
Throws:
ImportException


Copyright © 2002-2011 Atlassian. All Rights Reserved.