public final class TableExporter extends Object
Non-numeric fields such as strings are delimited by double quotes.
Modifier | Constructor and Description |
---|---|
private |
TableExporter()
Do not allow class instantiation.
|
Modifier and Type | Method and Description |
---|---|
static void |
export(JTable table,
String path,
char fieldDelimiter)
Export the given table to a text file.
|
public static void export(JTable table, String path, char fieldDelimiter) throws IOException
table
- the JTable componentpath
- the output file pathfieldDelimiter
- the field delimiter to useIOException
- if there are errors writing the fileCopyright © 2019. All rights reserved.