|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
oracle.adf.model.adapter.dataformat.csv.CSVParser
Excel CSV Parser. If no encoding is passed to the constructor, the default encoding used to read the CSV file is "UTF8". Rules of Excel CSV <ui>
Examples:
1. ,"abc 123", => abc 123
2. ,"abc" "123', => abc "123"
3. ,abc "123", => abc "123"
| Field Summary | |
static java.lang.String |
UTF8_ENCODINGUTF8 encoding, used for hadling data in different languages. |
| Constructor Summary | |
CSVParser(java.io.InputStream pInputStream)Constructor |
|
CSVParser(java.io.InputStream pInputStream, java.lang.String pEnc)Constructor |
|
| Method Summary | |
java.lang.String[] |
getLineValues()Gets values of next line. |
boolean |
isEndOfLine()Tests if end of line has reached. |
boolean |
nextLine()Moves to the next line of the data. |
void |
setQuoteChar(char ch)Sets the quote character. |
void |
setSeparators(char[] seps)Sets the separator characters as a list of possible separators for the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String UTF8_ENCODING
| Constructor Detail |
public CSVParser(java.io.InputStream pInputStream)
throws java.lang.Exception
pInputStream - CSV input streamjava.lang.Exception - any error occurred
public CSVParser(java.io.InputStream pInputStream,
java.lang.String pEnc)
throws java.lang.Exception
pInputStream - CSV input streampEnc - character encodingjava.lang.Exception - any error occurred| Method Detail |
public void setSeparators(char[] seps)
seps - Array of separator charactors.public void setQuoteChar(char ch)
ch - Quote character.
public boolean nextLine()
throws java.lang.Exception
java.lang.Exception - any error occurred
public java.lang.String[] getLineValues()
throws java.lang.Exception
java.lang.Exception - any error occurredpublic boolean isEndOfLine()
|
Oracle Application Development Framework Model and Business Components Java API Reference VERSION B16005-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||