POI 导入Excel 提示LeftoverDataException求帮助
public boolean hasNextRecord() throws LeftoverDataException {
if (_currentDataLength != -1 && _currentDataLength != _currentDataOffset) {
readToEndOfRecord();
}
if (_currentDataLength != DATA_LEN_NEEDS_TO_BE_READ) {
_nextSid = readNextSid();
}
return _nextSid != INVALID_SID_VALUE;
}
private void readToEndOfRecord(){
while(this._currentDataOffset<this._currentDataLength)
readByte();
}
}