Top Methods
de.siegmar.fastcsv.reader

pack-priv sealed Interface CsvParser

extends Closeable
permits StrictCsvParser, RelaxedCsvParser
Known Direct Implementers
de.siegmar.fastcsv.reader.RelaxedCsvParser, de.siegmar.fastcsv.reader.StrictCsvParser
Imports
java.io.Closeable, .IOException

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the starting line number of the last parsed record.
getStartingLineNumber
()

Returns the starting line number of the last parsed record.

public boolean

Returns:

true if data was parsed, false if the end of the stream was reached.
parse
()

Parses the next record from the stream and passes it to the callback handler.

public String

Returns:

the next line from the stream without consuming it.
peekLine
()

Returns the next line from the stream without consuming it.

public void
reset(long startingLineNumber)

Resets the parser to the specified starting line number.

public void
skipLine(int numCharsToSkip)

Skips a line in the stream after skipping the specified number of characters.

Inherited from java.io.Closeable:
close

Method Detail

getStartingLineNumberback to summary
public long getStartingLineNumber()

Returns the starting line number of the last parsed record.

Returns:long

the starting line number of the last parsed record.

parseback to summary
public boolean parse() throws IOException

Parses the next record from the stream and passes it to the callback handler.

Returns:boolean

true if data was parsed, false if the end of the stream was reached.

peekLineback to summary
public String peekLine() throws IOException

Returns the next line from the stream without consuming it.

Returns:String

the next line from the stream without consuming it.

resetback to summary
public void reset(long startingLineNumber)

Resets the parser to the specified starting line number.

skipLineback to summary
public void skipLine(int numCharsToSkip) throws IOException

Skips a line in the stream after skipping the specified number of characters.