[]
A DataImportResult is returned by IRange.importData(java.lang.Object) and IRange.importData(java.lang.Object,DataImportOptions). It describes the size of the imported data at the target location, including how many rows and columns were imported.
Object[][] values = {{"Name", "Score"}, {"Alice", 100}};
DataImportResult result = worksheet.getRange("A1").importData(values);
int rowsImported = result.getRowsImported();
int columnsImported = result.getColumnsImported();
intintThe returned value reflects the height of the imported data written by IRange.importData(java.lang.Object) or IRange.importData(java.lang.Object,DataImportOptions).
Object[][] values = {{"Name", "Score"}, {"Alice", 100}};
DataImportResult result = worksheet.getRange("A1").importData(values);
int rowsImported = result.getRowsImported();
The returned value reflects the width of the imported data written by IRange.importData(java.lang.Object) or IRange.importData(java.lang.Object,DataImportOptions).
Object[][] values = {{"Name", "Score"}, {"Alice", 100}};
DataImportResult result = worksheet.getRange("A1").importData(values);
int columnsImported = result.getColumnsImported();