public interface FieldReader extends Closeable
Modifier and Type | Method and Description |
---|---|
CharSequence |
getContent()
Returns the content of the current field.
|
default long |
getFieldIndex()
Returns the field index of the current field.
|
default long |
getRecordIndex()
Returns the record index of the current field.
|
default long |
getRecordLineNumber()
Returns the number of line where the current RECORD starts.
|
boolean |
nextField()
Advances the cursor and returns whether or not the next field exists in the current record.
|
boolean |
nextRecord()
Advances the cursor and returns whether or not the next record exists.
|
void |
rewindFields()
Rewinds the cursor to the head of the current record.
|
boolean nextRecord() throws IOException
getContent()
result object.true
if the next record exists, otherwise false
IOException
- if I/O error occurred while reading the next recordTextFormatException
- if text format is not validboolean nextField() throws IOException
getContent()
result object.true
if the next field exists, otherwise false
IOException
- if I/O error occurred while reading the next fieldTextFormatException
- if text format is not validvoid rewindFields() throws IOException
IOException
- if I/O error occurred while rewinding fieldsTextFormatException
- if text format is not validCharSequence getContent()
null
if this represents NULL
TextFormatException
- if text format is not validdefault long getRecordLineNumber()
-1
if it is not suredefault long getRecordIndex()
-1
if it is not suredefault long getFieldIndex()
-1
if it is not sureCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.