com.atlassian.jira.imports.csv
Class MindProdCsvProvider
java.lang.Object
com.atlassian.jira.imports.csv.MindProdCsvProvider
- All Implemented Interfaces:
- CsvProvider
public class MindProdCsvProvider
- extends java.lang.Object
- implements CsvProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MindProdCsvProvider
public MindProdCsvProvider(java.io.File file,
CsvMapper csvMapper)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
MindProdCsvProvider
public MindProdCsvProvider(java.io.File file)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
startSession
public void startSession()
throws CsvImportException
- Specified by:
startSession
in interface CsvProvider
- Throws:
CsvImportException
stopSession
public void stopSession()
throws CsvImportException
- Specified by:
stopSession
in interface CsvProvider
- Throws:
CsvImportException
getHeaderLine
public java.util.Collection getHeaderLine()
throws CsvImportException
- Specified by:
getHeaderLine
in interface CsvProvider
- Throws:
CsvImportException
getNextLine
public org.apache.commons.collections.MultiMap getNextLine()
throws CsvImportException
- 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:
CsvImportException
getNextLineRaw
public java.util.Collection getNextLineRaw()
throws CsvImportException
- Specified by:
getNextLineRaw
in interface CsvProvider
- Throws:
CsvImportException
getRestOfFile
public java.util.List getRestOfFile()
throws CsvImportException
- 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:
CsvImportException
readUniqueValues
public SetMultiHashMap readUniqueValues(java.util.Collection headers)
throws CsvImportException
- Specified by:
readUniqueValues
in interface CsvProvider
- Throws:
CsvImportException
Copyright © 2002-2006 Atlassian. All Rights Reserved.