mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-23 21:21:28 +07:00
Created definitions for numRecords and numFields within ParserInput
This commit is contained in:
parent
10178dfebc
commit
138c62c225
@ -180,6 +180,7 @@ public class TsvParser implements ParserInput {
|
||||
fieldNames.add(fieldName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int numFields() {
|
||||
return numFields;
|
||||
}
|
||||
@ -192,6 +193,7 @@ public class TsvParser implements ParserInput {
|
||||
return fieldNames.get(fieldId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int numRecords() {
|
||||
return numRecords;
|
||||
}
|
||||
|
@ -2,7 +2,11 @@ package com.riiablo.table;
|
||||
|
||||
public interface ParserInput {
|
||||
int fieldId(String fieldName);
|
||||
int recordId(String fieldName);
|
||||
int numFields();
|
||||
|
||||
int recordId(String recordName);
|
||||
int numRecords();
|
||||
|
||||
CharSequence token(int recordId, int fieldId);
|
||||
|
||||
byte parseByte(int recordId, int fieldId);
|
||||
|
Loading…
Reference in New Issue
Block a user