亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sstrecord.java

?? java 報表 to office文檔: 本包由java語言開發
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ====================================================================   Copyright 2002-2004   Apache Software Foundation   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.apache.poi.hssf.record;import org.apache.poi.util.BinaryTree;import org.apache.poi.util.LittleEndian;import org.apache.poi.util.LittleEndianConsts;import java.util.Iterator;import java.util.List;/** * Title:        Static String Table Record * <P> * Description:  This holds all the strings for LabelSSTRecords. * <P> * REFERENCE:    PG 389 Microsoft Excel 97 Developer's Kit (ISBN: *               1-57231-498-2) * <P> * @author Andrew C. Oliver (acoliver at apache dot org) * @author Marc Johnson (mjohnson at apache dot org) * @author Glen Stampoultzis (glens at apache.org) * * @see org.apache.poi.hssf.record.LabelSSTRecord * @see org.apache.poi.hssf.record.ContinueRecord */public class SSTRecord        extends Record{    /** how big can an SST record be? As big as any record can be: 8228 bytes */    static final int MAX_RECORD_SIZE = 8228;    /** standard record overhead: two shorts (record id plus data space size)*/    static final int STD_RECORD_OVERHEAD =            2 * LittleEndianConsts.SHORT_SIZE;    /** SST overhead: the standard record overhead, plus the number of strings and the number of unique strings -- two ints */    static final int SST_RECORD_OVERHEAD =            ( STD_RECORD_OVERHEAD + ( 2 * LittleEndianConsts.INT_SIZE ) );    /** how much data can we stuff into an SST record? That would be _max minus the standard SST record overhead */    static final int MAX_DATA_SPACE = MAX_RECORD_SIZE - SST_RECORD_OVERHEAD;    /** overhead for each string includes the string's character count (a short) and the flag describing its characteristics (a byte) */    static final int STRING_MINIMAL_OVERHEAD = LittleEndianConsts.SHORT_SIZE + LittleEndianConsts.BYTE_SIZE;    public static final short sid = 0xfc;    /** union of strings in the SST and EXTSST */    private int field_1_num_strings;    /** according to docs ONLY SST */    private int field_2_num_unique_strings;    private BinaryTree field_3_strings;    /** Record lengths for initial SST record and all continue records */    private List _record_lengths = null;    private SSTDeserializer deserializer;    /** Offsets from the beginning of the SST record (even across continuations) */    int[] bucketAbsoluteOffsets;    /** Offsets relative the start of the current SST or continue record */    int[] bucketRelativeOffsets;    /**     * default constructor     */    public SSTRecord()    {        field_1_num_strings = 0;        field_2_num_unique_strings = 0;        field_3_strings = new BinaryTree();        deserializer = new SSTDeserializer(field_3_strings);    }    /**     * Constructs an SST record and sets its fields appropriately.     *     * @param id must be 0xfc or an exception will be throw upon     *           validation     * @param size the size of the data area of the record     * @param data of the record (should not contain sid/len)     */    public SSTRecord( final short id, final short size, final byte[] data )    {        super( id, size, data );    }    /**     * Constructs an SST record and sets its fields appropriately.     *     * @param id must be 0xfc or an exception will be throw upon     *           validation     * @param size the size of the data area of the record     * @param data of the record (should not contain sid/len)     * @param offset of the record     */    public SSTRecord( final short id, final short size, final byte[] data,                      int offset )    {        super( id, size, data, offset );    }    /**     * Add a string. Determines whether 8-bit encoding can be used, or     * whether 16-bit encoding must be used.     * <p>     * THIS IS THE PREFERRED METHOD OF ADDING A STRING. IF YOU USE THE     * OTHER ,code>addString</code> METHOD AND FORCE 8-BIT ENCODING ON     * A STRING THAT SHOULD USE 16-BIT ENCODING, YOU WILL CORRUPT THE     * STRING; IF YOU USE THAT METHOD AND FORCE 16-BIT ENCODING, YOU     * ARE WASTING SPACE WHEN THE WORKBOOK IS WRITTEN OUT.     *     * @param string string to be added     *     * @return the index of that string in the table     */    public int addString( final String string )    {        int rval;        if ( string == null )        {            rval = addString( "", false );        }        else        {            // scan for characters greater than 255 ... if any are            // present, we have to use 16-bit encoding. Otherwise, we            // can use 8-bit encoding            boolean useUTF16 = false;            int strlen = string.length();            for ( int j = 0; j < strlen; j++ )            {                if ( string.charAt( j ) > 255 )                {                    useUTF16 = true;                    break;                }            }            rval = addString( string, useUTF16 );        }        return rval;    }    /**     * Add a string and assert the encoding (8-bit or 16-bit) to be     * used.     * <P>     * USE THIS METHOD AT YOUR OWN RISK. IF YOU FORCE 8-BIT ENCODING,     * YOU MAY CORRUPT YOUR STRING. IF YOU FORCE 16-BIT ENCODING AND     * IT ISN'T NECESSARY, YOU WILL WASTE SPACE WHEN THIS RECORD IS     * WRITTEN OUT.     *     * @param string string to be added     * @param useUTF16 if true, forces 16-bit encoding. If false,     *                 forces 8-bit encoding     *     * @return the index of that string in the table     */    public int addString( final String string, final boolean useUTF16 )    {        field_1_num_strings++;        String str = ( string == null ) ? ""                : string;        int rval;        UnicodeString ucs = new UnicodeString();        ucs.setString( str );        ucs.setCharCount( (short) str.length() );        ucs.setOptionFlags( (byte) ( useUTF16 ? 1                : 0 ) );        Integer integer = (Integer) field_3_strings.getKeyForValue( ucs );        if ( integer != null )        {            rval = integer.intValue();        }        else        {            // This is a new string -- we didn't see it among the            // strings we've already collected            rval = field_3_strings.size();            field_2_num_unique_strings++;            integer = new Integer( rval );            SSTDeserializer.addToStringTable( field_3_strings, integer, ucs );//            field_3_strings.put( integer, ucs );        }        return rval;    }    /**     * @return number of strings     */    public int getNumStrings()    {        return field_1_num_strings;    }    /**     * @return number of unique strings     */    public int getNumUniqueStrings()    {        return field_2_num_unique_strings;    }    /**     * USE THIS METHOD AT YOUR OWN PERIL: THE <code>addString</code>     * METHODS MANIPULATE THE NUMBER OF STRINGS AS A SIDE EFFECT; YOUR     * ATTEMPTS AT MANIPULATING THE STRING COUNT IS LIKELY TO BE VERY     * WRONG AND WILL RESULT IN BAD BEHAVIOR WHEN THIS RECORD IS     * WRITTEN OUT AND ANOTHER PROCESS ATTEMPTS TO READ THE RECORD     *     * @param count  number of strings     *     */    public void setNumStrings( final int count )    {        field_1_num_strings = count;    }    /**     * USE THIS METHOD AT YOUR OWN PERIL: THE <code>addString</code>     * METHODS MANIPULATE THE NUMBER OF UNIQUE STRINGS AS A SIDE     * EFFECT; YOUR ATTEMPTS AT MANIPULATING THE UNIQUE STRING COUNT     * IS LIKELY TO BE VERY WRONG AND WILL RESULT IN BAD BEHAVIOR WHEN     * THIS RECORD IS WRITTEN OUT AND ANOTHER PROCESS ATTEMPTS TO READ     * THE RECORD     *     * @param count  number of strings     */    public void setNumUniqueStrings( final int count )    {        field_2_num_unique_strings = count;    }    /**     * Get a particular string by its index     *     * @param id index into the array of strings     *     * @return the desired string     */    public String getString( final int id )    {        return ( (UnicodeString) field_3_strings.get( new Integer( id ) ) ).getString();    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆精品久久久| 一区二区不卡在线播放| 国产精品天天摸av网| 亚洲综合激情网| 国产精品一区二区在线播放| 3751色影院一区二区三区| 中文字幕精品—区二区四季| 麻豆成人av在线| 精品视频1区2区3区| 亚洲乱码国产乱码精品精的特点 | 一区二区三区av电影| 国产在线精品免费| 7777精品伊人久久久大香线蕉经典版下载 | 色欧美片视频在线观看在线视频| 亚洲精品一区二区三区在线观看| 亚洲1区2区3区视频| 色综合久久中文综合久久牛| 欧美激情在线一区二区三区| 精品一区二区三区久久| 日韩欧美视频在线| 日韩不卡在线观看日韩不卡视频| 欧美日韩综合不卡| 丝袜美腿亚洲综合| 欧美日韩在线一区二区| 亚洲国产三级在线| 欧美日韩国产片| 亚洲一区二区三区四区在线观看| 91黄色激情网站| 一区二区三区蜜桃| 在线观看av一区| 亚洲中国最大av网站| 色婷婷av一区二区三区大白胸 | 国产成人免费视频一区| 精品成人一区二区三区| 国产精品一级二级三级| 国产亚洲综合在线| 不卡的电影网站| 国产精品国产三级国产普通话蜜臀| 国产成人免费在线观看不卡| 欧美激情综合在线| aaa欧美色吧激情视频| 亚洲欧美日韩国产手机在线 | 久久日韩粉嫩一区二区三区| 国内精品自线一区二区三区视频| 精品福利av导航| 欧美男人的天堂一二区| 日韩精品1区2区3区| 日韩欧美中文一区二区| 国产中文字幕精品| 国产精品美女一区二区| 欧美日韩专区在线| 久久99国产精品麻豆| 国产精品理伦片| 欧美日韩视频不卡| 国产又黄又大久久| 玉米视频成人免费看| 欧美一区二区三区视频在线观看| 久久国产日韩欧美精品| 亚洲视频在线一区观看| 欧美年轻男男videosbes| 国产乱码一区二区三区| 亚洲色图一区二区三区| 日韩限制级电影在线观看| 国产成人h网站| 亚洲成人免费视频| 国产精品视频麻豆| 在线不卡的av| av成人老司机| 加勒比av一区二区| 亚洲激情自拍视频| 久久久久97国产精华液好用吗 | 不卡电影一区二区三区| 国产精品99久久久久久似苏梦涵 | 美腿丝袜亚洲一区| 亚洲三级在线免费观看| 欧美高清精品3d| 成人午夜激情影院| 日韩精品国产精品| 亚洲欧美一区二区三区极速播放 | 国产成人av电影在线观看| 亚洲国产视频网站| 国产精品久久久久久久久免费相片 | 国模套图日韩精品一区二区| 亚洲女人的天堂| 国产亚洲精品bt天堂精选| 欧美乱熟臀69xxxxxx| k8久久久一区二区三区| 精品一区二区久久久| 亚洲国产欧美在线| 最近中文字幕一区二区三区| 久久午夜羞羞影院免费观看| 欧美浪妇xxxx高跟鞋交| 97久久超碰精品国产| 国产福利视频一区二区三区| 99久久精品99国产精品| 国产在线一区观看| 免费在线看成人av| 亚洲国产一区二区在线播放| 亚洲人吸女人奶水| 亚洲国产精品99久久久久久久久| 欧美一级搡bbbb搡bbbb| 在线成人av影院| 欧美理论在线播放| 欧美性猛片aaaaaaa做受| 91视频精品在这里| 94色蜜桃网一区二区三区| 岛国精品一区二区| 国产剧情一区二区| 国产精品99久久久久久似苏梦涵 | 日韩视频一区二区三区| 91精选在线观看| 538在线一区二区精品国产| 色香色香欲天天天影视综合网| av在线不卡电影| 色综合网色综合| 欧亚一区二区三区| 欧美日韩成人在线| 欧美日韩精品欧美日韩精品一综合| 欧美猛男男办公室激情| 欧美在线视频你懂得| 欧美日韩在线综合| 欧美一区二区免费视频| 精品国产乱码久久久久久闺蜜| 欧美mv日韩mv国产网站| 久久亚洲精华国产精华液| 国产精品婷婷午夜在线观看| 最新欧美精品一区二区三区| 一级女性全黄久久生活片免费| 亚洲国产欧美在线人成| 青青草视频一区| 国产精华液一区二区三区| 97se亚洲国产综合在线| 欧美日韩aaaaa| 久久久久久久久免费| 椎名由奈av一区二区三区| 亚洲成va人在线观看| 日韩一区欧美二区| 国产成人精品在线看| 在线观看免费成人| 日韩一区二区三区四区| 国产无一区二区| 亚洲国产裸拍裸体视频在线观看乱了| 日韩中文字幕一区二区三区| 国产一区二区三区不卡在线观看| 91在线免费播放| 欧美一级xxx| 亚洲欧美综合色| 免费观看在线色综合| 99国产麻豆精品| 欧美一级爆毛片| 亚洲精选在线视频| 另类中文字幕网| 91国产成人在线| 久久精品视频免费观看| 夜夜夜精品看看| 国产成人欧美日韩在线电影| 欧美午夜片在线观看| 国产欧美日韩在线| 日韩中文字幕av电影| 91小视频在线免费看| 亚洲精品一区二区三区精华液| 亚洲黄网站在线观看| 国产成人鲁色资源国产91色综| 欧美日韩成人综合在线一区二区| 中文字幕在线一区二区三区| 看国产成人h片视频| 欧美日韩一区二区三区免费看| 国产亚洲综合色| 另类人妖一区二区av| 欧美伊人久久大香线蕉综合69 | 久久影院电视剧免费观看| 性感美女久久精品| 91天堂素人约啪| 国产日韩一级二级三级| 男男视频亚洲欧美| 欧美精品自拍偷拍| 一区二区欧美精品| 色综合久久久久综合体| 国产日韩欧美精品在线| 久久97超碰色| 91精品国产综合久久精品性色| 亚洲最色的网站| a在线欧美一区| 中文字幕一区二区三区四区 | 免费视频一区二区| 欧美日韩大陆一区二区| 亚洲一区在线观看网站| aaa国产一区| 中文字幕中文在线不卡住| 国产成人一区二区精品非洲| 精品久久久久久久久久久久久久久 | 一区av在线播放| 欧美在线观看一区二区| 亚洲卡通欧美制服中文| 一本大道av一区二区在线播放| 国产精品久久99| 99久久精品国产一区| 国产精品美日韩| 91视频国产观看| 樱花草国产18久久久久|