ggz.common
Class CSVParser

java.lang.Object
  extended by ggz.common.CSVParser

public class CSVParser
extends java.lang.Object


Method Summary
static java.lang.String escape(java.lang.String str)
          Escapes a string according to CSV conventions: fields that contain commas, double-quotes, or line-breaks must be quoted, a quote within a field must be escaped with an additional quote immediately preceding the literal quote, space before and after delimiter commas may be trimmed, and a line break within an element must be preserved.
static java.lang.String[] parseLine(java.io.BufferedReader reader)
           
static java.lang.String[] parseLine(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseLine

public static java.lang.String[] parseLine(java.io.BufferedReader reader)
                                    throws java.io.IOException
Throws:
java.io.IOException

parseLine

public static java.lang.String[] parseLine(java.lang.String line)

escape

public static java.lang.String escape(java.lang.String str)
Escapes a string according to CSV conventions:

Parameters:
str -
Returns: