com.openindex.openestate.impl.csv
Class CSVReader

java.lang.Object
  extended by com.openindex.openestate.impl.OpenEstateConverter
      extended by com.openindex.openestate.impl.csv.CSVReader
Direct Known Subclasses:
IDXCSVReader, IS24CSVReader

public abstract class CSVReader
extends OpenEstateConverter

allgemeine Basisklasse zum Einlesen von CSV-Daten.
$Id: CSVReader.java 1809 2012-10-04 11:12:47Z andy $

Author:
Andreas Rudolph

Constructor Summary
CSVReader()
          Erzeugt eine Instanz der Klasse 'CSVReader'
 
Method Summary
 AgentContactImpl createEmptyContact()
           
 EstateImpl createEmptyEstate()
           
static char getChar(int pos, String[] values)
           
static char getChar(int pos, String[] values, char defaultValue)
           
 String getCharset()
           
static Float getFloat(int pos, String[] values)
           
static Float getFloat(int pos, String[] values, Float defaultValue)
           
static Integer getInt(int pos, String[] values)
           
static Integer getInt(int pos, String[] values, Integer defaultValue)
           
static Long getLong(int pos, String[] values)
           
static Long getLong(int pos, String[] values, Long defaultValue)
           
static String getString(int pos, String[] values)
           
static String getString(int pos, String[] values, String defaultValue)
           
 void read(File f, SerializableXmlElement dest)
           
 void read(File f, SerializableXmlElement dest, String charset)
           
 void read(InputStream in, SerializableXmlElement dest)
           
 void read(InputStream in, SerializableXmlElement dest, String charset)
           
 void read(Reader reader, SerializableXmlElement dest)
           
abstract  void readLine(String line, SerializableXmlElement dest)
           
 
Methods inherited from class com.openindex.openestate.impl.OpenEstateConverter
getErrorMap, getEstateValue, getEstateValueAsBigDecimal, getEstateValueAsBigInteger, getEstateValueAsBoolean, getEstateValueAsCalendar, getEstateValueAsDate, getEstateValueAsDouble, getEstateValueAsFloat, getEstateValueAsInteger, getEstateValueAsList, getEstateValueAsLong, getEstateValueAsNonEmptyString, getEstateValueAsString, getFormattedEstateValue, getNumber, getOpenEstateLanguage, getXmlLineSeparator, hasEstateValue, putErrors, putEstateValue, putEstateValue, setOpenEstateLanguage, setXmlLineSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVReader

public CSVReader()
Erzeugt eine Instanz der Klasse 'CSVReader'

Method Detail

createEmptyContact

public AgentContactImpl createEmptyContact()

createEmptyEstate

public EstateImpl createEmptyEstate()

getChar

public static char getChar(int pos,
                           String[] values)

getChar

public static char getChar(int pos,
                           String[] values,
                           char defaultValue)

getCharset

public String getCharset()

getFloat

public static Float getFloat(int pos,
                             String[] values)

getFloat

public static Float getFloat(int pos,
                             String[] values,
                             Float defaultValue)

getInt

public static Integer getInt(int pos,
                             String[] values)

getInt

public static Integer getInt(int pos,
                             String[] values,
                             Integer defaultValue)

getLong

public static Long getLong(int pos,
                           String[] values)

getLong

public static Long getLong(int pos,
                           String[] values,
                           Long defaultValue)

getString

public static String getString(int pos,
                               String[] values)

getString

public static String getString(int pos,
                               String[] values,
                               String defaultValue)

read

public void read(File f,
                 SerializableXmlElement dest)
          throws IOException
Throws:
IOException

read

public void read(File f,
                 SerializableXmlElement dest,
                 String charset)
          throws IOException
Throws:
IOException

read

public void read(InputStream in,
                 SerializableXmlElement dest)
          throws IOException
Throws:
IOException

read

public void read(InputStream in,
                 SerializableXmlElement dest,
                 String charset)
          throws IOException
Throws:
IOException

read

public void read(Reader reader,
                 SerializableXmlElement dest)
          throws IOException
Throws:
IOException

readLine

public abstract void readLine(String line,
                              SerializableXmlElement dest)


Copyright © 2012 OpenEstate. All Rights Reserved.