|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.excel4j.reflect.ReflectAddin
org.excel4j.addin.CSVAddin
public class CSVAddin
Utility functions for handling CSVs.
| Nested Class Summary | |
|---|---|
static class |
CSVAddin.Table
Contains a CSV. |
| Field Summary |
|---|
| Fields inherited from class org.excel4j.reflect.ReflectAddin |
|---|
argMapper, attributes, pne |
| Constructor Summary | |
|---|---|
CSVAddin()
|
|
| Method Summary | |
|---|---|
java.lang.String[][] |
GetData(CSVAddin.Table table)
Grabs all the data for the CSV. |
java.lang.String[] |
GetHeaderRow(CSVAddin.Table table)
Grabs just the header row. |
int |
GetNumColumns(CSVAddin.Table table)
Gets the number of columns (uses the first row). |
int |
GetNumRows(CSVAddin.Table table)
Gets the number of rows for the CSV (including the header/first row). |
java.lang.String[][] |
Read(java.lang.String url)
Read a CSV from a file or URL. |
CSVAddin.Table |
ReadAsObject(java.lang.String url)
Read in a CSV file/url and return as an object (so it can be manipulated). |
java.lang.String[][] |
ReadEx(java.lang.String url,
java.lang.String delim,
java.lang.Boolean hasQuotes)
Read a CSV from a file or URL. |
| Methods inherited from class org.excel4j.reflect.ReflectAddin |
|---|
close, getAddinCategory, getAttributes, getAttributes, getFunctions, getLongName, getName, open |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVAddin()
| Method Detail |
|---|
public java.lang.String[][] Read(java.lang.String url)
throws java.lang.Exception
url. -
java.lang.Exception
public CSVAddin.Table ReadAsObject(java.lang.String url)
throws java.lang.Exception
url. -
java.lang.Exceptionpublic java.lang.String[] GetHeaderRow(CSVAddin.Table table)
table. -
public java.lang.String[][] GetData(CSVAddin.Table table)
table. -
public int GetNumRows(CSVAddin.Table table)
table. -
public int GetNumColumns(CSVAddin.Table table)
table. -
public java.lang.String[][] ReadEx(java.lang.String url,
java.lang.String delim,
java.lang.Boolean hasQuotes)
throws java.lang.Exception
url. -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||