com.atlassian.jira.imports.csv
Class MindProdCsvProvider

java.lang.Object
  extended by com.atlassian.jira.imports.csv.MindProdCsvProvider
All Implemented Interfaces:
CsvProvider

public class MindProdCsvProvider
extends Object
implements CsvProvider


Constructor Summary
MindProdCsvProvider(File file, Character delimiter)
           
MindProdCsvProvider(File file, CsvMapper csvMapper, Character delimiter)
           
 
Method Summary
 char getDelimiter()
           
 Collection getHeaderLine()
           
 org.apache.commons.collections.MultiMap getNextLine()
          Gets the next line as a Map.
 Collection getNextLineRaw()
          Next line, or null if none could be found.
 List getRestOfFile()
          Parses the rest of the FIle that has not been read.
 SetMultiHashMap readUniqueValues(Collection headers)
           
 void startSession()
           
 void stopSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MindProdCsvProvider

public MindProdCsvProvider(File file,
                           CsvMapper csvMapper,
                           Character delimiter)

MindProdCsvProvider

public MindProdCsvProvider(File file,
                           Character delimiter)
Method Detail

startSession

public void startSession()
                  throws ImportException
Specified by:
startSession in interface CsvProvider
Throws:
ImportException

getDelimiter

public char getDelimiter()

stopSession

public void stopSession()
                 throws ImportException
Specified by:
stopSession in interface CsvProvider
Throws:
ImportException

getHeaderLine

public Collection getHeaderLine()
                         throws ImportException
Specified by:
getHeaderLine in interface CsvProvider
Throws:
ImportException

getNextLine

public org.apache.commons.collections.MultiMap getNextLine()
                                                    throws ImportException
Description copied from interface: CsvProvider
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

Specified by:
getNextLine in interface CsvProvider
Returns:
Map of String - String value pairs
Throws:
ImportException

getNextLineRaw

public Collection getNextLineRaw()
                          throws ImportException
Next line, or null if none could be found.

Specified by:
getNextLineRaw in interface CsvProvider
Throws:
ImportException

getRestOfFile

public List getRestOfFile()
                   throws ImportException
Description copied from interface: CsvProvider
Parses the rest of the FIle that has not been read.

Specified by:
getRestOfFile in interface CsvProvider
Returns:
List of Maps of String - String value pairs
Throws:
ImportException

readUniqueValues

public SetMultiHashMap readUniqueValues(Collection headers)
                                 throws ImportException
Specified by:
readUniqueValues in interface CsvProvider
Throws:
ImportException


Copyright © 2002-2007 Atlassian. All Rights Reserved.