com.java4less.rreport
Class CsvLayer

java.lang.Object
  |
  +--com.java4less.rreport.CsvLayer
All Implemented Interfaces:
ExportLayer

public class CsvLayer
extends java.lang.Object
implements ExportLayer

Implementation of the ExportLayer used to create CSV output


Field Summary
 java.lang.String areaSeparator
          String used to separate areas in the csv output
 java.lang.String escapeSequence
          if the input string contains the separator, it will be replaced with this string
 java.lang.String fieldSeparator
          character used to separate fields in the csv output
 
Constructor Summary
CsvLayer()
           
 
Method Summary
 void close()
          close Document
 java.lang.String getName()
          get name of this layer
 java.lang.String getOutput()
          returns csv output
 void ignoreArea(java.lang.String areaname)
          set an area to be ignored, this area will not be exported to csv
 void newPage()
          create a new page
 void print(RObject o, double x, double y, java.lang.Object Value)
          add object to the PDF Document at the given position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldSeparator

public java.lang.String fieldSeparator
character used to separate fields in the csv output

escapeSequence

public java.lang.String escapeSequence
if the input string contains the separator, it will be replaced with this string

areaSeparator

public java.lang.String areaSeparator
String used to separate areas in the csv output
Constructor Detail

CsvLayer

public CsvLayer()
Method Detail

getName

public java.lang.String getName()
get name of this layer
Specified by:
getName in interface ExportLayer

newPage

public void newPage()
             throws java.lang.Exception
create a new page
Specified by:
newPage in interface ExportLayer

close

public void close()
close Document
Specified by:
close in interface ExportLayer

print

public void print(RObject o,
                  double x,
                  double y,
                  java.lang.Object Value)
add object to the PDF Document at the given position.
Specified by:
print in interface ExportLayer

getOutput

public java.lang.String getOutput()
returns csv output

ignoreArea

public void ignoreArea(java.lang.String areaname)
set an area to be ignored, this area will not be exported to csv