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

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

?? mutablesection.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.ByteArrayOutputStream;import java.io.IOException;import java.io.OutputStream;import java.util.Collections;import java.util.Comparator;import java.util.Iterator;import java.util.LinkedList;import java.util.List;import java.util.ListIterator;import java.util.Map;import org.apache.poi.hpsf.wellknown.PropertyIDMap;import org.apache.poi.util.LittleEndian;/** * <p>Adds writing capability to the {@link Section} class.</p> * * <p>Please be aware that this class' functionality will be merged into the * {@link Section} class at a later time, so the API will change.</p> * * @version $Id: MutableSection.java,v 1.14 2005/04/01 16:58:00 klute Exp $ * @since 2002-02-20 */public class MutableSection extends Section{    /**     * <p>If the "dirty" flag is true, the section's size must be     * (re-)calculated before the section is written.</p>     */    private boolean dirty = true;    /**     * <p>List to assemble the properties. Unfortunately a wrong     * decision has been taken when specifying the "properties" field     * as an Property[]. It should have been a {@link java.util.List}.</p>     */    private List preprops;    /**     * <p>Contains the bytes making out the section. This byte array is     * established when the section's size is calculated and can be reused     * later. It is valid only if the "dirty" flag is false.</p>     */    private byte[] sectionBytes;    /**     * <p>Creates an empty mutable section.</p>     */    public MutableSection()    {        dirty = true;        formatID = null;        offset = -1;        preprops = new LinkedList();    }    /**     * <p>Constructs a <code>MutableSection</code> by doing a deep copy of an      * existing <code>Section</code>. All nested <code>Property</code>      * instances, will be their mutable counterparts in the new     * <code>MutableSection</code>.</p>     *      * @param s The section set to copy     */    public MutableSection(final Section s)    {        setFormatID(s.getFormatID());        final Property[] pa = s.getProperties();        final MutableProperty[] mpa = new MutableProperty[pa.length];        for (int i = 0; i < pa.length; i++)            mpa[i] = new MutableProperty(pa[i]);        setProperties(mpa);        setDictionary(s.getDictionary());    }    /**     * <p>Sets the section's format ID.</p>     *     * @param formatID The section's format ID     *     * @see #setFormatID(byte[])     * @see #getFormatID     */    public void setFormatID(final ClassID formatID)    {        this.formatID = formatID;    }    /**     * <p>Sets the section's format ID.</p>     *     * @param formatID The section's format ID as a byte array. It components     * are in big-endian format.     *     * @see #setFormatID(ClassID)     * @see #getFormatID     */    public void setFormatID(final byte[] formatID)    {        ClassID fid = getFormatID();        if (fid == null)        {            fid = new ClassID();            setFormatID(fid);        }        fid.setBytes(formatID);    }    /**     * <p>Sets this section's properties. Any former values are overwritten.</p>     *     * @param properties This section's new properties.     */    public void setProperties(final Property[] properties)    {        this.properties = properties;        preprops = new LinkedList();        for (int i = 0; i < properties.length; i++)            preprops.add(properties[i]);        dirty = true;    }    /**     * <p>Sets the value of the property with the specified ID. If a     * property with this ID is not yet present in the section, it     * will be added. An already present property with the specified     * ID will be overwritten.</p>     *     * @param id The property's ID     * @param value The property's value. It will be written as a Unicode     * string.     *     * @see #setProperty(int, long, Object)     * @see #getProperty     */    public void setProperty(final int id, final String value)    {        setProperty(id, Variant.VT_LPWSTR, value);        dirty = true;    }    /**     * <p>Sets the value and the variant type of the property with the     * specified ID. If a property with this ID is not yet present in     * the section, it will be added. An already present property with     * the specified ID will be overwritten. A default mapping will be     * used to choose the property's type.</p>     *     * @param id The property's ID.     * @param variantType The property's variant type.     * @param value The property's value.     *     * @see #setProperty(int, String)     * @see #getProperty     * @see Variant     */    public void setProperty(final int id, final long variantType,                            final Object value)    {        final MutableProperty p = new MutableProperty();        p.setID(id);        p.setType(variantType);        p.setValue(value);        setProperty(p);        dirty = true;    }    /**     * <p>Sets a property. If a property with the same ID is not yet present in     * the section, the property will be added to the section. If there is     * already a property with the same ID present in the section, it will be     * overwritten.</p>     *     * @param p The property to be added to the section     *     * @see #setProperty(int, long, Object)     * @see #setProperty(int, String)     * @see #getProperty     * @see Variant     */    public void setProperty(final Property p)    {        final long id = p.getID();        removeProperty(id);        preprops.add(p);        dirty = true;    }    /**     * <p>Removes a property.</p>     *     * @param id The ID of the property to be removed     */    public void removeProperty(final long id)    {        for (final Iterator i = preprops.iterator(); i.hasNext();)            if (((Property) i.next()).getID() == id)            {                i.remove();                break;            }        dirty = true;    }    /**     * <p>Sets the value of the boolean property with the specified     * ID.</p>     *     * @param id The property's ID     * @param value The property's value     *     * @see #setProperty(int, long, Object)     * @see #getProperty     * @see Variant     */    protected void setPropertyBooleanValue(final int id, final boolean value)    {        setProperty(id, (long) Variant.VT_BOOL, new Boolean(value));    }    /**     * <p>Returns the section's size.</p>     *     * @return the section's size.     */    public int getSize()    {        if (dirty)        {            try            {                size = calcSize();                dirty = false;            }            catch (HPSFRuntimeException ex)            {                throw ex;            }            catch (Exception ex)            {                throw new HPSFRuntimeException(ex);            }        }        return size;    }    /**     * <p>Calculates the section's size. It is the sum of the lengths of the     * section's header (8), the properties list (16 times the number of     * properties) and the properties themselves.</p>     *     * @return the section's length in bytes.     */    private int calcSize() throws WritingNotSupportedException, IOException     {        final ByteArrayOutputStream out = new ByteArrayOutputStream();        write(out);        out.close();        /* Pad to multiple of 4 bytes so that even the Windows shell (explorer)         * shows custom properties. */        sectionBytes = Util.pad4(out.toByteArray());

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美腿丝袜一区二区三区| 国产精品美女www爽爽爽| 亚洲香蕉伊在人在线观| 欧美日韩一区二区三区四区五区| 亚洲夂夂婷婷色拍ww47| 欧美人与禽zozo性伦| 日韩成人免费看| 精品黑人一区二区三区久久| 成人国产免费视频| 亚洲蜜臀av乱码久久精品蜜桃| 91丝袜美腿高跟国产极品老师| 亚洲电影中文字幕在线观看| 欧美一区在线视频| 国产精品123| 亚洲一区二区精品视频| 精品久久久久av影院| 成人午夜看片网址| 亚洲成人激情综合网| 久久综合色之久久综合| 99精品黄色片免费大全| 日本一不卡视频| 中文欧美字幕免费| 精品视频在线看| 国产剧情一区二区三区| 亚洲人吸女人奶水| 精品福利一二区| 91国产福利在线| 国产精品一卡二卡在线观看| 伊人婷婷欧美激情| 亚洲天堂久久久久久久| 欧美日韩国产另类一区| 国产v综合v亚洲欧| 日韩精品亚洲专区| 久久精品一区二区三区av| 欧美亚洲国产bt| 国产v日产∨综合v精品视频| 丝袜亚洲另类欧美| 中文字幕在线视频一区| 日韩精品一区二区三区中文不卡 | 欧美美女一区二区三区| 国产成人h网站| 青青草国产成人av片免费| 亚洲天堂福利av| 久久人人超碰精品| 91精品国产福利在线观看| 9色porny自拍视频一区二区| 极品美女销魂一区二区三区| 亚洲电影一区二区| 亚洲色图在线播放| 中文无字幕一区二区三区| 日韩一区二区在线播放| 欧美三电影在线| 91视频精品在这里| 成人精品一区二区三区四区 | 成人av在线资源网| 国产专区综合网| 日本vs亚洲vs韩国一区三区二区 | av日韩在线网站| 国产成人在线电影| 精品无人码麻豆乱码1区2区| 亚洲成国产人片在线观看| 一区二区三区欧美久久| 国产精品理伦片| 亚洲国产精品v| 久久精品视频在线看| 精品国产制服丝袜高跟| 日韩欧美一级精品久久| 欧美一级二级三级乱码| 555夜色666亚洲国产免| 69精品人人人人| 欧美二区在线观看| 69堂国产成人免费视频| 欧美一区二区私人影院日本| 欧美群妇大交群中文字幕| 欧美日韩国产高清一区二区三区 | 欧美电影免费观看完整版| 欧美精品在线一区二区三区| 欧美美女视频在线观看| 欧美日韩视频在线观看一区二区三区| 色综合久久66| 精品视频在线视频| 欧美精品v国产精品v日韩精品 | 成人看片黄a免费看在线| 国产一区二区三区观看| 国产成人一区在线| 成人国产在线观看| 色8久久精品久久久久久蜜| 欧洲精品视频在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 在线亚洲人成电影网站色www| 色婷婷综合视频在线观看| 欧美性色黄大片| 3d动漫精品啪啪| 亚洲精品一区二区三区99| 国产欧美日产一区| 亚洲日本护士毛茸茸| 亚洲一区二区三区美女| 日本成人超碰在线观看| 国产精品一二三| 色婷婷综合激情| 日韩欧美一级片| 国产精品久久久久久久久免费樱桃| 国产精品国产精品国产专区不蜜 | 日韩欧美国产综合一区| 久久久不卡网国产精品二区 | 精品视频色一区| 日韩免费一区二区| 国产精品久久久久久久岛一牛影视| 亚洲日本在线看| 蓝色福利精品导航| 成人高清免费观看| 欧美日韩在线播| 久久精品视频免费| 一区二区三区美女视频| 久久精品国产亚洲高清剧情介绍 | 欧美亚一区二区| 欧美不卡123| 亚洲精品成人精品456| 麻豆久久久久久| 色综合色狠狠综合色| 精品少妇一区二区三区在线视频| ●精品国产综合乱码久久久久| 日韩av一二三| 99久久99久久久精品齐齐 | 久久久美女毛片| 亚洲一区电影777| 国产最新精品免费| 欧美午夜不卡在线观看免费| 国产亚洲一区二区在线观看| 亚洲国产日韩av| 成人免费毛片嘿嘿连载视频| 欧美一区二区高清| 樱桃国产成人精品视频| 懂色av一区二区三区免费观看| 欧美久久高跟鞋激| 亚洲精品高清在线观看| 福利电影一区二区三区| 精品日韩一区二区| 午夜视黄欧洲亚洲| 91一区在线观看| 国产午夜精品福利| 久久精品国产99国产| 欧美日韩视频在线第一区| 亚洲视频图片小说| 国产精品一区不卡| 欧美成人三级电影在线| 三级欧美在线一区| 欧美亚洲国产一卡| 亚洲精品欧美激情| 色综合色狠狠天天综合色| 国产精品乱子久久久久| 国产成人免费9x9x人网站视频| 欧美大片拔萝卜| 日本sm残虐另类| 欧美日韩电影在线播放| 亚洲一区二区五区| 欧美三级电影在线观看| 亚洲成人tv网| 欧美日韩国产一区| 调教+趴+乳夹+国产+精品| 在线观看免费亚洲| 亚洲午夜久久久久久久久久久| 色综合久久中文综合久久牛| 最新热久久免费视频| 色综合天天做天天爱| 亚洲男人天堂一区| 日本高清不卡一区| 亚洲欧美激情在线| 一本一本大道香蕉久在线精品| 亚洲女人的天堂| 欧美午夜精品免费| 日韩激情av在线| 亚洲精品在线电影| 国产sm精品调教视频网站| 国产精品视频观看| 99vv1com这只有精品| 亚洲精品视频免费看| 欧美日韩激情在线| 久久99精品网久久| 久久久国产一区二区三区四区小说| 国产成人免费高清| 亚洲狼人国产精品| 欧美久久久久久蜜桃| 久久成人久久鬼色| 日本一区二区免费在线观看视频| 成人黄色电影在线| 亚洲综合色自拍一区| 日韩一区二区视频| 成人综合在线观看| 亚洲在线观看免费视频| 欧美一区二区播放| 高清不卡在线观看av| 亚洲成人免费在线| 久久久久久亚洲综合| 94-欧美-setu| 日韩经典一区二区| 日本一区二区三区视频视频| 欧美日韩一区二区三区四区五区| 激情综合色综合久久| 亚洲三级在线播放|