All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ttzero.excel.entity.e3.NumberParser 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 org.ttzero.excel.reader.AllInOneCell;

/**
 * 5.71 NUMBER
 * 

* This record represents a cell that contains a * floating-point value. * * @author guanquan.wang at 2019-04-18 22:12 */ public class NumberParser { public static void get(Block block, AllInOneCell cell) { block.skip(2); // Index to row cell.row = block.nextUnsignedShort(); // Index to column cell.column = block.nextShort(); // Index to XF record (➜5.115) cell.xf = block.nextShort(); // IEEE 754 floating-point value (64-bit double precision) cell.dValue = block.nextDouble(); } public static short getId() { return ParserIdentifier.NUMBER; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy