public class CSVExtractor
extends java.lang.Object
| Constructor and Description |
|---|
CSVExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.util.List<java.lang.String>> |
getCSV(java.lang.String content) |
static void |
getCSV(java.lang.String content,
CSVCallback callback) |
static void |
streamCSV(java.io.InputStream stream,
CSVCallback callback)
Given an InputStream that represents a CSV, stream each line into the
CSVParser and call the callback for each line.
|
static void |
streamCSV(java.lang.String fileName,
CSVCallback callback) |
public static java.util.List<java.util.List<java.lang.String>> getCSV(java.lang.String content)
throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic static void getCSV(java.lang.String content,
CSVCallback callback)
throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic static void streamCSV(java.lang.String fileName,
CSVCallback callback)
throws java.io.FileNotFoundException,
org.antlr.runtime.RecognitionException
java.io.FileNotFoundExceptionorg.antlr.runtime.RecognitionExceptionpublic static void streamCSV(java.io.InputStream stream,
CSVCallback callback)
throws java.io.IOException,
org.antlr.runtime.RecognitionException
stream - - The InputStream for reading a CSV file line by linecallback - - The Callback that is called after each line is readjava.io.IOException - - If there was an IO problem while reading the InputStreamorg.antlr.runtime.RecognitionException - - If there was a parsing issue related to the CSV