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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? section.java

?? java 報(bào)表 to office文檔: 本包由java語(yǔ)言開發(fā)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* ====================================================================   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.hpsf;import java.io.UnsupportedEncodingException;import java.util.ArrayList;import java.util.Collections;import java.util.Iterator;import java.util.List;import java.util.Map;import org.apache.poi.hpsf.wellknown.PropertyIDMap;import org.apache.poi.hpsf.wellknown.SectionIDMap;import org.apache.poi.util.LittleEndian;/** * <p>Represents a section in a {@link PropertySet}.</p> * * @author Rainer Klute <a * href="mailto:klute@rainer-klute.de">&lt;klute@rainer-klute.de&gt;</a> * @author Drew Varner (Drew.Varner allUpIn sc.edu) * @version $Id: Section.java,v 1.24 2004/08/15 13:43:35 klute Exp $ * @since 2002-02-09 */public class Section{    /**     * <p>Maps property IDs to section-private PID strings. These     * strings can be found in the property with ID 0.</p>     */    protected Map dictionary;    /**     * <p>The section's format ID, {@link #getFormatID}.</p>     */    protected ClassID formatID;    /**     * <p>Returns the format ID. The format ID is the "type" of the     * section. For example, if the format ID of the first {@link     * Section} contains the bytes specified by     * <code>org.apache.poi.hpsf.wellknown.SectionIDMap.SUMMARY_INFORMATION_ID</code>     * the section (and thus the property set) is a SummaryInformation.</p>     *     * @return The format ID     */    public ClassID getFormatID()    {        return formatID;    }    /**     * @see #getOffset     */    protected long offset;    /**     * <p>Returns the offset of the section in the stream.</p>     *     * @return The offset of the section in the stream.     */    public long getOffset()    {        return offset;    }    /**     * @see #getSize     */    protected int size;    /**     * <p>Returns the section's size in bytes.</p>     *     * @return The section's size in bytes.     */    public int getSize()    {        return size;    }    /**     * <p>Returns the number of properties in this section.</p>     *     * @return The number of properties in this section.     */    public int getPropertyCount()    {        return properties.length;    }    /**     * @see #getProperties     */    protected Property[] properties;    /**     * <p>Returns this section's properties.</p>     *     * @return This section's properties.     */    public Property[] getProperties()    {        return properties;    }    /**     * <p>Creates an empty and uninitialized {@link Section}.     */    protected Section()    { }    /**     * <p>Creates a {@link Section} instance from a byte array.</p>     *     * @param src Contains the complete property set stream.     * @param offset The position in the stream that points to the     * section's format ID.     *      * @exception UnsupportedEncodingException if the section's codepage is not     * supported.     */    public Section(final byte[] src, final int offset)    throws UnsupportedEncodingException    {        int o1 = offset;        /*         * Read the format ID.         */        formatID = new ClassID(src, o1);        o1 += ClassID.LENGTH;        /*         * Read the offset from the stream's start and positions to         * the section header.         */        this.offset = LittleEndian.getUInt(src, o1);        o1 = (int) this.offset;        /*         * Read the section length.         */        size = (int) LittleEndian.getUInt(src, o1);        o1 += LittleEndian.INT_SIZE;        /*         * Read the number of properties.         */        final int propertyCount = (int) LittleEndian.getUInt(src, o1);        o1 += LittleEndian.INT_SIZE;        /*         * Read the properties. The offset is positioned at the first         * entry of the property list. There are two problems:         *          * 1. For each property we have to find out its length. In the         *    property list we find each property's ID and its offset relative         *    to the section's beginning. Unfortunately the properties in the         *    property list need not to be in ascending order, so it is not         *    possible to calculate the length as         *    (offset of property(i+1) - offset of property(i)). Before we can         *    that we first have to sort the property list by ascending offsets.         *          * 2. We have to read the property with ID 1 before we read other          *    properties, at least before other properties containing strings.         *    The reason is that property 1 specifies the codepage. If it is         *    1200, all strings are in Unicode. In other words: Before we can         *    read any strings we have to know whether they are in Unicode or         *    not. Unfortunately property 1 is not guaranteed to be the first in         *    a section.         *         *    The algorithm below reads the properties in two passes: The first         *    one looks for property ID 1 and extracts the codepage number. The         *    seconds pass reads the other properties.         */        properties = new Property[propertyCount];                /* Pass 1: Read the property list. */        int pass1Offset = o1;        List propertyList = new ArrayList(propertyCount);        PropertyListEntry ple;        for (int i = 0; i < properties.length; i++)        {            ple = new PropertyListEntry();            /* Read the property ID. */            ple.id = (int) LittleEndian.getUInt(src, pass1Offset);            pass1Offset += LittleEndian.INT_SIZE;            /* Offset from the section's start. */            ple.offset = (int) LittleEndian.getUInt(src, pass1Offset);            pass1Offset += LittleEndian.INT_SIZE;            /* Add the entry to the property list. */            propertyList.add(ple);        }        /* Sort the property list by ascending offsets: */        Collections.sort(propertyList);        /* Calculate the properties' lengths. */        for (int i = 0; i < propertyCount - 1; i++)        {            final PropertyListEntry ple1 =                (PropertyListEntry) propertyList.get(i);            final PropertyListEntry ple2 =                (PropertyListEntry) propertyList.get(i + 1);            ple1.length = ple2.offset - ple1.offset;        }        if (propertyCount > 0)        {            ple = (PropertyListEntry) propertyList.get(propertyCount - 1);            ple.length = size - ple.offset;        }        /* Look for the codepage. */        int codepage = -1;        for (final Iterator i = propertyList.iterator();             codepage == -1 && i.hasNext();)        {            ple = (PropertyListEntry) i.next();            /* Read the codepage if the property ID is 1. */            if (ple.id == PropertyIDMap.PID_CODEPAGE)            {                /* Read the property's value type. It must be                 * VT_I2. */                int o = (int) (this.offset + ple.offset);                final long type = LittleEndian.getUInt(src, o);                o += LittleEndian.INT_SIZE;                if (type != Variant.VT_I2)                    throw new HPSFRuntimeException                        ("Value type of property ID 1 is not VT_I2 but " +                         type + ".");                /* Read the codepage number. */                codepage = LittleEndian.getUShort(src, o);            }        }        /* Pass 2: Read all properties - including the codepage property,         * if available. */        int i1 = 0;        for (final Iterator i = propertyList.iterator(); i.hasNext();)        {            ple = (PropertyListEntry) i.next();            properties[i1++] = new Property(ple.id, src,                                            this.offset + ple.offset,                                            ple.length, codepage);        }        /*         * Extract the dictionary (if available).         */        dictionary = (Map) getProperty(0);    }    /**     * <p>Represents an entry in the property list and holds a property's ID and     * its offset from the section's beginning.</p>     */    class PropertyListEntry implements Comparable    {        int id;        int offset;        int length;        /**         * <p>Compares this {@link PropertyListEntry} with another one by their         * offsets. A {@link PropertyListEntry} is "smaller" than another one if         * its offset from the section's begin is smaller.</p>         *         * @see Comparable#compareTo(java.lang.Object)         */        public int compareTo(final Object o)        {            if (!(o instanceof PropertyListEntry))                throw new ClassCastException(o.toString());            final int otherOffset = ((PropertyListEntry) o).offset;            if (offset < otherOffset)                return -1;            else if (offset == otherOffset)

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成a人片在线观看中文| 一区二区高清视频在线观看| 最新日韩av在线| 免费成人小视频| 99久久久久久99| 2020国产精品自拍| 午夜精品久久久久久久久久 | 日韩一区二区三区三四区视频在线观看 | 亚洲精品一卡二卡| 麻豆精品久久精品色综合| 91免费视频网| 国产精品福利一区| 国产乱妇无码大片在线观看| 欧美久久久久免费| 一区二区三区日韩欧美精品| 懂色av一区二区三区免费看| 精品少妇一区二区三区视频免付费| 色综合色狠狠综合色| 不卡视频免费播放| 欧美日韩一级黄| 亚洲一区在线播放| 91美女精品福利| 国产欧美综合在线观看第十页| 日韩 欧美一区二区三区| 欧美三级蜜桃2在线观看| 最新国产の精品合集bt伙计| 麻豆成人久久精品二区三区小说| 欧美日韩一卡二卡三卡| 亚洲国产精品一区二区尤物区| 97精品久久久午夜一区二区三区| 国产日韩一级二级三级| 国产99久久久久| 国产精品无人区| 国产一级精品在线| 国产精品午夜久久| 91在线丨porny丨国产| 国产精品福利一区二区三区| 波多野结衣91| 亚洲乱码国产乱码精品精可以看| heyzo一本久久综合| 亚洲少妇中出一区| 欧美日韩精品是欧美日韩精品| 亚洲国产欧美在线人成| 91精品欧美综合在线观看最新 | 色婷婷综合久久久中文一区二区| 国产精品传媒入口麻豆| 色香蕉成人二区免费| 亚洲一区二区在线免费观看视频| 欧美日韩大陆在线| 久久不见久久见中文字幕免费| 久久精品在线观看| 国产aⅴ精品一区二区三区色成熟| 国产精品嫩草影院com| 色噜噜狠狠色综合欧洲selulu| 亚洲一二三四久久| 精品少妇一区二区三区免费观看| 国产精品91xxx| 亚洲色图色小说| 欧美另类z0zxhd电影| 麻豆91在线播放| 亚洲丝袜精品丝袜在线| 欧美丰满嫩嫩电影| 国内不卡的二区三区中文字幕| 欧美激情一区二区三区全黄| 在线免费观看日本一区| 麻豆精品国产91久久久久久| 中文字幕欧美区| 欧美日韩不卡在线| 国产成人综合在线播放| 亚洲激情av在线| 精品盗摄一区二区三区| 日本高清不卡aⅴ免费网站| 麻豆高清免费国产一区| 国产精品久久久久久久久免费相片| 成人av午夜影院| 日本成人在线一区| 国产精品人成在线观看免费| 4438成人网| 91亚洲精品一区二区乱码| 免费观看成人鲁鲁鲁鲁鲁视频| 国产精品毛片久久久久久久| 日韩一二三区不卡| 日本韩国一区二区三区| 国产成人自拍在线| 免费看日韩a级影片| 亚洲天堂福利av| 久久久久久免费毛片精品| 欧美日韩在线电影| 成人高清av在线| 国模大尺度一区二区三区| 亚洲一区二区三区小说| 中文久久乱码一区二区| 精品久久久久久无| 69堂成人精品免费视频| 在线视频你懂得一区二区三区| 国产福利精品一区| 激情综合网最新| 免费成人美女在线观看.| 亚洲自拍偷拍九九九| 中文字幕在线不卡一区| 国产亚洲自拍一区| 精品国产一区二区三区不卡 | 欧美一区二区三区在线观看| 欧美在线免费播放| 色综合激情久久| 91影院在线观看| 成人av网在线| 粉嫩久久99精品久久久久久夜| 精品一区二区三区影院在线午夜| 青青青爽久久午夜综合久久午夜 | 另类小说欧美激情| 日本欧美在线观看| 日韩中文字幕91| 蜜臀av一级做a爰片久久| 喷水一区二区三区| 人人狠狠综合久久亚洲| 美女网站视频久久| 久国产精品韩国三级视频| 青青草一区二区三区| 久久国产免费看| 九九热在线视频观看这里只有精品| 蜜桃视频一区二区三区在线观看| 日本在线观看不卡视频| 看电视剧不卡顿的网站| 久久不见久久见免费视频7 | 欧美日韩精品三区| 欧美日韩视频在线第一区| 欧美亚洲动漫精品| 成人黄色在线看| 日本精品一级二级| 欧美日韩精品欧美日韩精品| 337p亚洲精品色噜噜狠狠| 日韩三级高清在线| 精品久久久久一区二区国产| 国产日产精品1区| 国产欧美日本一区二区三区| 久久综合五月天婷婷伊人| 欧美韩国一区二区| 亚洲欧美日韩国产综合| 成人免费小视频| 午夜久久久久久| 国产精品18久久久久久久网站| 国产1区2区3区精品美女| 99国产精品一区| 欧美日韩综合一区| 日韩一区二区在线看片| 欧美国产丝袜视频| 亚洲综合无码一区二区| 午夜精彩视频在线观看不卡| 日韩在线观看一区二区| 国产精品18久久久| 色综合久久久网| 欧美一区午夜视频在线观看| 欧美电影免费观看高清完整版| 国产精品网站在线观看| 五月激情六月综合| 国产91丝袜在线播放| 欧美亚洲一区二区在线| 日韩一级片网址| 国产精品视频观看| 日韩1区2区日韩1区2区| 99re在线视频这里只有精品| 69久久99精品久久久久婷婷| 成人欧美一区二区三区1314| 看片网站欧美日韩| 欧美伊人久久大香线蕉综合69| 精品国产一区二区三区不卡 | 欧美人狂配大交3d怪物一区| 国产精品天干天干在线综合| 日本在线观看不卡视频| 色婷婷综合激情| 久久网站热最新地址| 五月激情丁香一区二区三区| av电影在线观看不卡| 26uuu国产日韩综合| 亚洲成人在线免费| 91在线精品秘密一区二区| 国产无人区一区二区三区| 免费人成精品欧美精品| 欧美色图片你懂的| 最新不卡av在线| 成人一区二区三区在线观看| 日韩欧美一区二区视频| 天堂一区二区在线免费观看| 一本到三区不卡视频| 国产精品素人视频| 国产不卡一区视频| 久久亚洲精华国产精华液 | 欧美三片在线视频观看 | 欧美一区二区三区在线观看视频| 国产精品久久久久久久久果冻传媒| 秋霞国产午夜精品免费视频| 欧美怡红院视频| 亚洲激情综合网| eeuss国产一区二区三区| 欧美精品一级二级| 亚洲成人动漫在线观看| 欧美午夜电影一区| 亚洲线精品一区二区三区八戒| 欧洲av一区二区嗯嗯嗯啊|