/* ==================================================================== Licensed to the Apache Software Foundation (ASF) Under one or more contributor license agreements. See the NOTICE file distributed with this work for Additional information regarding copyright ownership. The ASF licenses this file to You 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. ==================================================================== */ namespace HH.WMS.Utils.NPOI.HSSF.Record { using System; using System.Text; using System.Collections; using HH.WMS.Utils.NPOI.Util; using HH.WMS.Utils.NPOI.HSSF.Util; /** * Title: RK Record * Description: An internal 32 bit number with the two most significant bits * storing the type. This is part of a bizarre scheme to save disk * space and memory (gee look at all the other whole records that * are in the file just "cause"..,far better to waste Processor * cycles on this then leave on of those "valuable" records out). * We support this in Read-ONLY mode. HSSF Converts these to NUMBER records * * * * REFERENCE: PG 376 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2) * @author Andrew C. Oliver (acoliver at apache dot org) * @author Jason Height (jheight at chariot dot net dot au) * @version 2.0-pre * @see org.apache.poi.hssf.record.NumberRecord */ public class RKRecord : CellRecord { public const short sid = 0x27e; public static short RK_IEEE_NUMBER = 0; public static short RK_IEEE_NUMBER_TIMES_100 = 1; public static short RK_INTEGER = 2; public static short RK_INTEGER_TIMES_100 = 3; private int field_4_rk_number; public RKRecord() { } /** * Constructs a RK record and Sets its fields appropriately. * @param in the RecordInputstream to Read the record from */ public RKRecord(RecordInputStream in1) : base(in1) { field_4_rk_number = in1.ReadInt(); } public int RKField { get { return field_4_rk_number; } } /** * Get the type of the number * * @return one of these values: *