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

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

?? section.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.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)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品情趣| 午夜精品一区二区三区免费视频| 777色狠狠一区二区三区| 一本色道久久综合亚洲91| 成人国产免费视频| 色婷婷激情一区二区三区| 91小视频在线观看| 欧美一区二区三区视频免费| 久久综合色播五月| 国产午夜精品一区二区三区嫩草 | 久久久国产综合精品女国产盗摄| 日韩精品一区二区在线| 国产精品视频线看| 亚洲一区二区三区国产| 精品在线视频一区| av在线一区二区| 欧美一区二视频| 国产女人aaa级久久久级 | 日韩无一区二区| 亚洲国产精品激情在线观看| 香蕉影视欧美成人| 欧洲一区二区av| 欧美激情资源网| 黄页视频在线91| 欧美日韩一区二区电影| 中文字幕中文字幕中文字幕亚洲无线| 亚洲综合图片区| 成人激情午夜影院| 国产日韩欧美一区二区三区综合| 亚洲6080在线| 欧美在线观看一二区| 亚洲欧美成人一区二区三区| 精品一区二区三区在线播放视频 | 亚洲国产日韩一级| 成人国产精品视频| 国产精品久久午夜夜伦鲁鲁| 精品亚洲成a人在线观看| 欧美一级日韩一级| 日韩av一级电影| 51精品视频一区二区三区| 亚洲一区二区三区三| 在线观看日韩电影| 亚洲一区二区三区四区在线观看| 波波电影院一区二区三区| 日韩理论片一区二区| 91国偷自产一区二区使用方法| 国产精品免费观看视频| 91丨九色丨尤物| 亚洲成人动漫精品| 国产亚洲欧美日韩俺去了| 免费成人美女在线观看.| 日韩精品影音先锋| 国产乱子轮精品视频| 1区2区3区欧美| 欧美性猛交一区二区三区精品| 日韩成人一区二区三区在线观看| 国产精品综合二区| 国产曰批免费观看久久久| 亚洲综合一区二区| 欧美日韩和欧美的一区二区| 日韩 欧美一区二区三区| 日本一区二区成人| 欧美日韩国产高清一区二区三区| 亚洲成va人在线观看| 久久精品欧美日韩精品| 欧美中文字幕一区| 国产精品原创巨作av| 午夜电影久久久| 一区二区三区自拍| 不卡的av中国片| 欧美性猛交一区二区三区精品| 久久国产欧美日韩精品| 亚洲特级片在线| 精品国产一区二区三区四区四 | 国产福利一区二区| 欧美精品国产精品| 91亚洲精品乱码久久久久久蜜桃 | 欧美日韩中文另类| 成人免费黄色在线| 欧美激情一区二区在线| 一二三四社区欧美黄| 最新国产精品久久精品| 国产蜜臀av在线一区二区三区| 精品国产乱码久久久久久久久| 91麻豆精品国产自产在线观看一区 | 久久电影网站中文字幕| 日韩av不卡在线观看| 首页综合国产亚洲丝袜| 午夜久久久影院| 日本sm残虐另类| 国产一区二区久久| 国产激情一区二区三区四区 | 美女在线观看视频一区二区| 午夜精品久久久久久久久| 爽好多水快深点欧美视频| 另类小说色综合网站| 韩国成人福利片在线播放| 成人avav在线| 欧美日韩在线播| 久久婷婷综合激情| 最新日韩在线视频| 久久精品免费观看| 97aⅴ精品视频一二三区| 91国偷自产一区二区使用方法| 国产精品伦理一区二区| 中文字幕精品一区二区三区精品| 国产精品一区二区免费不卡| 国产在线不卡一卡二卡三卡四卡| 成人伦理片在线| 一本大道av伊人久久综合| 日韩一区二区高清| 国产精品久久久久久久久久免费看| 亚洲一区二区精品视频| 国产一区二区三区免费观看| 欧美少妇性性性| 国产精品国产三级国产普通话蜜臀 | 欧美一级高清片| 一区二区三区中文字幕电影| 国产精品久久久久永久免费观看 | 国产亚洲综合av| 日韩精品一二三区| 色香色香欲天天天影视综合网| xf在线a精品一区二区视频网站| 亚洲成人免费av| 91免费在线视频观看| 中文一区二区完整视频在线观看| 久久成人久久鬼色| 日韩一区二区电影网| 天涯成人国产亚洲精品一区av| 亚洲一二三四久久| 欧美色视频一区| 亚洲五码中文字幕| 欧美日韩国产另类不卡| 午夜精品久久久久久不卡8050| 欧美人动与zoxxxx乱| 天堂蜜桃一区二区三区| 制服丝袜成人动漫| 捆绑调教美女网站视频一区| 精品国产露脸精彩对白| 国产成人免费视频| 亚洲欧美一区二区久久 | 欧美高清在线视频| 91色在线porny| 美女任你摸久久| 国产精品日产欧美久久久久| 91麻豆国产香蕉久久精品| 午夜激情一区二区三区| 国产无一区二区| 欧美日韩精品欧美日韩精品一 | 蜜桃久久av一区| 中文字幕亚洲一区二区va在线| 欧洲另类一二三四区| 国产乱色国产精品免费视频| 亚洲欧美视频一区| 日韩精品一区二区三区在线播放| 国产精品一级黄| 视频一区二区国产| 中文字幕一区二区三区精华液| 日韩女优av电影在线观看| 在线视频国内自拍亚洲视频| 韩国中文字幕2020精品| 午夜免费久久看| 亚洲电影一区二区三区| 国产精品毛片高清在线完整版| 91精品欧美综合在线观看最新| 欧美影院一区二区三区| 91麻豆视频网站| 成人综合婷婷国产精品久久| 国产精品亚洲专一区二区三区| 日本免费在线视频不卡一不卡二| 亚洲一区视频在线| 亚洲精品欧美综合四区| 亚洲欧洲国产专区| 亚洲男同性恋视频| 综合精品久久久| a4yy欧美一区二区三区| 精品久久久久久久久久久久包黑料| 色综合久久综合网| 91极品美女在线| 欧美午夜精品理论片a级按摩| 91国偷自产一区二区开放时间 | 蜜桃av噜噜一区| 国内精品第一页| 白白色亚洲国产精品| 91网上在线视频| 欧美日韩和欧美的一区二区| 欧美一区二区三区婷婷月色| 日精品一区二区三区| 日韩精品中文字幕在线不卡尤物| 久久99久久99小草精品免视看| 免费欧美高清视频| 久久超碰97中文字幕| 国产福利一区二区三区在线视频| 国产精品夜夜嗨| 精品视频免费在线| 久久影院电视剧免费观看| 国产精品全国免费观看高清| 亚洲精品福利视频网站| 国产一区 二区 三区一级| 91浏览器入口在线观看|