public class CSVSource
extends java.lang.Object
Constructor and Description |
---|
CSVSource(AdapterInputSource source)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying resource.
|
boolean |
isResettable()
Return true if the underlying resource is resettable.
|
void |
mark(int readAheadLimit)
Set the mark position.
|
int |
read()
Read from the underlying resource.
|
void |
reset()
Reset to the beginning of the resource.
|
void |
resetToMark()
Reset to the last mark position.
|
public CSVSource(AdapterInputSource source)
source
- - the AdapterInputSource from which to obtain the uderlying resourcepublic void close() throws java.io.IOException
java.io.IOException
- to indicate an io errorpublic int read() throws java.io.IOException
java.io.IOException
- for io errorspublic boolean isResettable()
public void resetToMark() throws java.io.IOException
java.io.IOException
- for io errorspublic void mark(int readAheadLimit) throws java.io.IOException
readAheadLimit
- is the maximum number of read-ahead eventsjava.io.IOException
- when an io error occurspublic void reset()