|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.CsvPivotTableUtils
public class CsvPivotTableUtils
CsvPivotTableUtils
is a class that has methods to export PivotTablePane's content to Character Separated
Values file format.
Nested Class Summary | |
---|---|
static class |
CsvPivotTableUtils.CsvPivotTableExportConfig
A class that has all the parameters that could be customized when exporting a PivotTablePane to csv file. |
Constructor Summary | |
---|---|
CsvPivotTableUtils()
|
Method Summary | |
---|---|
static boolean |
export(PivotTablePane pivotTablePane,
OutputStream out)
Exports the pivotTablePane to a CSV file output steam. |
static boolean |
export(PivotTablePane pivotTablePane,
OutputStream out,
CsvPivotTableUtils.CsvPivotTableExportConfig config)
Exports the pivotTablePane to a CSV file output steam. |
static boolean |
export(PivotTablePane pivotTablePane,
OutputStream out,
ValueConverter cellValueConverter)
Exports the pivotTablePane to a CSV file output steam. |
static boolean |
export(PivotTablePane pivotTablePane,
OutputStream out,
ValueConverter cellValueConverter,
char separator)
Exports the pivotTablePane to a CSV file output steam. |
static boolean |
export(PivotTablePane pivotTablePane,
String fileName)
Exports the pivotTablePane to an CSV file. |
static boolean |
export(PivotTablePane pivotTablePane,
String fileName,
ValueConverter cellValueConverter)
Exports the pivotTablePane to an CSV file. |
static boolean |
export(PivotTablePane pivotTablePane,
String fileName,
ValueConverter cellValueConverter,
char separator)
Exports the pivotTablePane to an CSV file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvPivotTableUtils()
Method Detail |
---|
public static boolean export(PivotTablePane pivotTablePane, String fileName) throws IOException
pivotTablePane
- the pivotTablePane to be exported.fileName
- the CSV file name. It should be the full path to the file.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, String fileName, ValueConverter cellValueConverter) throws IOException
pivotTablePane
- the pivotTablePane to be exported.fileName
- the CSV file name. It should be the full path to the file.cellValueConverter
- the converter to convert cell value to the value that can be set to CSV cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, String fileName, ValueConverter cellValueConverter, char separator) throws IOException
pivotTablePane
- the pivotTablePane to be exported.fileName
- the CSV file name. It should be the full path to the file.cellValueConverter
- the converter to convert cell value to the value that can be set to CSV cell.separator
- the character used to separate the cells. By default, it is a comma.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, OutputStream out) throws IOException
pivotTablePane
- the pivotTablePane to be exported.out
- the output stream
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, OutputStream out, ValueConverter cellValueConverter) throws IOException
pivotTablePane
- the pivotTablePane to be exported.out
- the output streamcellValueConverter
- the converter to convert cell value to the value that can be set to CSV cell.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, OutputStream out, ValueConverter cellValueConverter, char separator) throws IOException
pivotTablePane
- the pivotTablePane to be exported.out
- the output streamcellValueConverter
- the converter to convert cell value to the value that can be set to CSV cell.separator
- the character used to separate the cells. By default, it is a comma.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reasonpublic static boolean export(PivotTablePane pivotTablePane, OutputStream out, CsvPivotTableUtils.CsvPivotTableExportConfig config) throws IOException
pivotTablePane
- the pivotTablePane to be exported.out
- the output streamconfig
- a collection of the parameters that could be configured during the export process.
IOException
- if the write to the file failed.
FileNotFoundException
- if the file exists but is a directory rather than a regular file, does not
exist but cannot be created, or cannot be opened for any other reason
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |