DataFile 1.4

com.infomata.data
Class CSVFormat

java.lang.Object
  extended bycom.infomata.data.CSVFormat
All Implemented Interfaces:
DataFormat

public class CSVFormat
extends java.lang.Object
implements DataFormat

Implementation DataFormat interface for CSV formated files.

Version:
$Revision: 1.4 $
Author:
skim

Constructor Summary
CSVFormat()
           
 
Method Summary
 java.lang.String format(DataRow row)
          Converts a set of data into a line in data file.
 DataRow parseLine(java.lang.String line)
          Parses a line of data properly formatted in CSV format into set of data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVFormat

public CSVFormat()
Method Detail

format

public java.lang.String format(DataRow row)
Converts a set of data into a line in data file.

Specified by:
format in interface DataFormat
Parameters:
row - row of data to be converted in to String
Returns:
properly CSV formatted line of data.
See Also:
DataFormat.format(DataRow)

parseLine

public DataRow parseLine(java.lang.String line)
Parses a line of data properly formatted in CSV format into set of data.

Specified by:
parseLine in interface DataFormat
Parameters:
line - CSV formated line of data
Returns:
row of data
See Also:
DataFormat.parseLine(String)

DataFile 1.4

Copyright © 2004 Infomata. All Rights Reserved.