|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
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
public final class 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
Examples:
1. ,"abc 123", => abc 123
2. ,"abc" "123', => abc "123"
3. ,abc "123", => abc "123"
Field Summary | |
---|---|
static java.lang.String |
UTF8_ENCODING
UTF8 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 stream
java.lang.Exception
- any error occurredpublic CSVParser(java.io.InputStream pInputStream, java.lang.String pEnc) throws java.lang.Exception
pInputStream
- CSV input streampEnc
- character encoding
java.lang.Exception
- any error occurredMethod 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 occurredpublic java.lang.String[] getLineValues() throws java.lang.Exception
java.lang.Exception
- any error occurredpublic boolean isEndOfLine()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |