org.openswing.swing.export.java
Class ExportToCSV

java.lang.Object
  extended byorg.openswing.swing.export.java.ExportToCSV

public class ExportToCSV
extends java.lang.Object

Title: OpenSwing Framework

Description: This class is used to export grid data in CSV format (with ";" or "," separator).

CSV is a delimited data format that has fields/columns separated by the comma character and records/rows separated by newlines. Fields that contain a special character ( comma, newline, or double quote ), must be enclosed in double quotes. However, if a line contains a single entry which is the empty string, it may be enclosed in double quotes. If a field's value contains a double quote character it is escaped by placing another double quote character next to it. The CSV file format does not require a specific character encoding, byte order, or line terminator format.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it


Constructor Summary
ExportToCSV()
           
 
Method Summary
 byte[] getDocument(ExportOptions opt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportToCSV

public ExportToCSV()
Method Detail

getDocument

public byte[] getDocument(ExportOptions opt)
                   throws java.lang.Throwable
Parameters:
opt - export options
Returns:
CSV document, as byte array
Throws:
java.lang.Throwable