org.ttzero.excel.entity.e3.Index Maven / Gradle / Ivy
/*
* Copyright (c) 2019-2020, [email protected] All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ttzero.excel.entity.e3;
import java.util.Arrays;
/**
* Index
*
* @see IndexParser
* @author guanquan.wang at 2019-03-02 15:12
*/
public class Index {
// Index to first used row (rf, 0-based)
public int rf;
// Index to first row of unused tail of sheet (rl, last used row + 1, 0-based)
public int rl;
// Absolute stream position of the DEFCOLWIDTH record (➜5.32) of the current sheet. If
// this record does not exist, the offset points to the record at the position where the
// DEFCOLWIDTH record would occur
public int defColWidthPosition;
// Array of nm absolute stream positions to the DBCELL record (➜5.29) of each Row Block
public int nm;
public int[] nms;
@Override
public String toString() {
return "rf: " + rf
+ " rl: " + rl
+ " defColWidthPosition: " + defColWidthPosition
+ " nm: " + nm
+ " nms: " + Arrays.toString(nms);
}
}