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

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

?? bodypart.java

?? 手機(jī)郵箱撒的方式方式方式的
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
                getHeader().getName().toLowerCase().endsWith("png"))) {            return MailForm.BPViewingModes.MULTIMEDIA;        }        if (getHeader().getBodyPartContentType() == BodyPart.TYPE_OTHER            && getHeader().getName().toLowerCase().endsWith("pdf") ) {         	return MailForm.BPViewingModes.CONVERTED;    	}        // default viewing mode        return MailForm.BPViewingModes.NO_VIEW;    }        /**     * Switches to converted content. This means that method     * {@link BodyPart#getStorage()} will return storage of     * converted content.     *      * @see BodyPart#switchToNotConvertedContent()     * @see BodyPart#convertedContentMode     * @see BodyPart#getStorage()     */    public void switchToConvertedContent() {        convertedContentMode = true;    }        /**     * If converted mode is active - {@link #getStorage()} returns storage     * of converted content - returns true.     *      * @return true if converted mode is active.     *      * @see BodyPart#switchToNotConvertedContent()     * @see BodyPart#switchToConvertedContent()     * @see BodyPart#getStorage()     */    public boolean convertedContentMode() {        return convertedContentMode;    }        /**     * Switches to not converted content. This means that method     * {@link BodyPart#getStorage()} will return storage of non     * converted content.     *      * @see BodyPart#switchToConvertedContent()     * @see BodyPart#convertedContentMode     * @see BodyPart#getStorage()     */    public void switchToNotConvertedContent() {        convertedContentMode = false;    }    /**     * Gets the storage of this body part.     * Note that it would be returned the storage of converted     * or not converted content accordingly to whether method     * {@link #switchToConvertedContent()} or {@link #switchToNotConvertedContent()}     * was called last time.     *      * @return the storage of this body part.     *      * @see #switchToConvertedContent()     * @see #switchToNotConvertedContent()     */    public ContentStorage getStorage() {        return (convertedContentMode) ? getConvertedStorage() : contentStorage;    }        /**     * Gets the storage of converted content of this body part.     * @return the storage of this body part.     */    private ContentStorage getConvertedStorage() {        return convertedContentStorage;    }        public void createConvertedContentStorage() {    	convertedContentStorage = new RMSStorage(this);    }    /**     * Gets the information stored in body part header.     * @return the information in body part header     */    public Header getHeader() { return bodyPartHeader; }    /**     * Gets the size of the body part.     * @return the size of this body part     */    public long getSize() {        //System.out.println("Here 1 " + contentStorage);        return contentStorage.getSize();    }    /**     * Sets the size of this body part.     * @param size the new size of this body part     */    public void setSize(long size) {        contentStorage.setSize(size);    }        /**     * Saves information about body part to output stream (RMS database)     * Does not save the content of the body part, saves only information about     * this body part.     * @param outputStream the output stream to which the information about     *  this body part will be saved     * @throws java.lang.Exception can occur while writing to the outputStream     */    public void saveBodyPart(DataOutputStream outputStream) throws Exception {        outputStream.writeByte(bodyState);        outputStream.writeByte(order);                bodyPartHeader.save(outputStream);                outputStream.writeByte(getStorage().getStorageType().getStorageTypeNumber());        getStorage().saveStorageHeader(outputStream);        if (convertedContentStorage == null)        	outputStream.writeBoolean(false);        else {        	outputStream.writeBoolean(true);        	getConvertedStorage().saveStorageHeader(outputStream);        }    }        /**     * Loads information about body part from input stream (of RMS database).     * Does not load the content of body part, loads only information about     * body part.     * @param inputStream the input stream in which are stored information     *  about this body part.     * @throws java.lang.Exception can occur while reading inputStream     */    public void loadBodyPart(DataInputStream inputStream) throws Exception {        setBodyState(inputStream.readByte());        order = inputStream.readByte();                bodyPartHeader = new Header();        bodyPartHeader.load(inputStream);                // create the instance of storage of given type        byte storageType = inputStream.readByte();        contentStorage = ContentStorage.createStorageInstance(this, storageType);        // load the storage        contentStorage.loadStorage(inputStream);        if (inputStream.readBoolean()) {			convertedContentStorage = ContentStorage.createStorageInstance(this, storageType);        	convertedContentStorage.loadStorage(inputStream);        }    }    /**     * The header of the body part     */    public static class Header {        public Header() {}        public Header(String name, byte bodyPartContentType, byte charset, byte encoding) {            this.name = name;            this.bodypartContentType = bodyPartContentType;            this.charSet = charset;            this.encoding = encoding;        }                public Header(Header copy) {            this.name = copy.name;            this.bodypartContentType = copy.bodypartContentType;            this.charSet = copy.charSet;            this.encoding = copy.encoding;        }                private String name = "default_mail_body"; // bodypart's name or attachment's filename		                         /**         * Bodypart transfer encoding. Possible values         * ENC_NORMAL         * ENC_BASE64         * ENC_QUOTEDPRINTABLE         * ENC_8BIT         */        private byte encoding = ENC_NORMAL;        /**         * Type of body part. Possible values:         * TYPE_TEXT         * TYPE_HTML         * TYPE_MULTIMEDIA         * TYPE_APPLICATION         * TYPE_OTHER         */        private byte bodypartContentType = TYPE_TEXT;        /**         * Bodypart text charset. Possible values:         * CH_NORMAL         * CH_ISO88591         * CH_ISO88592         * CH_WIN1250         * CH_UTF8         * CH_USASCII         */        private byte charSet = CH_NORMAL;                        public byte getEncoding() {            return encoding;        }        public void setEncoding(byte encoding) {            this.encoding = encoding;        }                        public byte getBodyPartContentType() { return bodypartContentType; }        public void setBodyPartContentType(byte bodyPartContentType) { this.bodypartContentType = bodyPartContentType; }                public byte getCharSet() { return charSet; }        public void setCharSet(byte charSet) {this.charSet = charSet; }                public String getName() { return name; }        public void setName(String name) { this.name = name; }                /**         * Gets the file extension.         * @return the extension of the file in which the content is stored.         */        public String getExtension() {            return getName().substring(getName().lastIndexOf('.') + 1);        }                /**         * Saves this body part header to RMS database         * @param outputStream         * @throws java.lang.Exception         */        void save(DataOutputStream outputStream) throws Exception {            outputStream.writeUTF(name);            outputStream.writeByte(bodypartContentType);            outputStream.writeByte(getCharSet());            outputStream.writeByte(getEncoding());        }                /**         * Loads this body part header to input stream (typically rms database)         * @param inputStream         * @throws java.lang.Exception         */        void load(DataInputStream inputStream) throws Exception {            this.name = inputStream.readUTF();            this.bodypartContentType = inputStream.readByte();            this.charSet =inputStream.readByte();            this.encoding =inputStream.readByte();                    }                public String toString() {            return super.toString() + "; name = " + name + "; encoding = " + encoding + "; bodypartContentType = " + bodypartContentType + "; charSet = " + charSet;        }            }    /**     * Enumeration class of all possible types of body part.     */    public static class BodyPartTypes {        private final String name;        private BodyPartTypes(String name) {this.name = name;}        public String toString() { return name; }        public static final BodyPartTypes BODY = new BodyPartTypes("body");        public static final BodyPartTypes ATTACHMENT = new BodyPartTypes("attachment");    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
7777精品伊人久久久大香线蕉完整版| 国产亚洲一区二区三区四区| 九九热在线视频观看这里只有精品 | 国产91色综合久久免费分享| 精品久久国产97色综合| 国产一区二区精品久久99| 久久久亚洲高清| 久久综合狠狠综合久久激情| 欧洲色大大久久| 精品久久久久久久久久久院品网| 久久精品国产在热久久| 久久久久久夜精品精品免费| 丁香五精品蜜臀久久久久99网站| 国产精品久久久久婷婷二区次| 不卡影院免费观看| 午夜精品一区二区三区免费视频 | 精品久久国产字幕高潮| 国产精品 日产精品 欧美精品| 中文在线一区二区| 欧美日韩二区三区| 国产乱码一区二区三区| 一区二区理论电影在线观看| 日韩午夜电影av| 波波电影院一区二区三区| 午夜伦理一区二区| 国产日产亚洲精品系列| 欧美日韩激情一区| 高清国产一区二区| 视频一区欧美精品| 亚洲欧洲成人精品av97| 91精品一区二区三区在线观看| 东方aⅴ免费观看久久av| 亚洲成人资源在线| 国产精品午夜春色av| 欧美日韩一级二级三级| 国产成人啪午夜精品网站男同| 亚洲一区二区三区国产| 中文在线免费一区三区高中清不卡| 欧美精品自拍偷拍| 菠萝蜜视频在线观看一区| 青青草国产精品97视觉盛宴| 国产精品久久99| 欧美电影免费观看完整版| 色嗨嗨av一区二区三区| 粉嫩av一区二区三区在线播放| 天天综合日日夜夜精品| 国产精品黄色在线观看| 日韩精品一区二区三区四区视频| 色播五月激情综合网| 粉嫩高潮美女一区二区三区 | 国产精品夜夜爽| 天堂久久久久va久久久久| 中文字幕在线不卡一区| 26uuu国产电影一区二区| 7777精品伊人久久久大香线蕉的 | 91麻豆精品一区二区三区| 七七婷婷婷婷精品国产| 亚洲一区二区三区在线播放| 国产日韩欧美精品一区| 欧美一区二区三区啪啪| 欧美三级午夜理伦三级中视频| 91在线观看免费视频| 国产成人在线视频免费播放| 黄色小说综合网站| 欧美a级理论片| 午夜精品久久久久久| 午夜在线成人av| 亚洲线精品一区二区三区八戒| 中文字幕一区二区三区视频| 国产日韩一级二级三级| www国产精品av| 欧美变态tickle挠乳网站| 日韩精品最新网址| 日韩一区二区三区在线观看| 国产精品久久久久精k8| 国产三级精品在线| 国产精品热久久久久夜色精品三区 | 捆绑调教美女网站视频一区| 午夜精品福利久久久| 亚洲成a人在线观看| 天堂午夜影视日韩欧美一区二区| 午夜激情久久久| 美女久久久精品| 久久国产福利国产秒拍| 久久97超碰国产精品超碰| 久久99精品久久久久久久久久久久| 久久精品国产99| 精品一区二区在线免费观看| 久久国产精品72免费观看| 国产美女精品人人做人人爽| 国产成人av自拍| www.66久久| 欧美午夜视频网站| 日韩一区二区免费在线观看| 精品国产乱码久久久久久影片| 欧美精品一区二区三区很污很色的| 精品久久人人做人人爱| 久久精品欧美一区二区三区麻豆| 中文av一区二区| 亚洲六月丁香色婷婷综合久久| 夜夜嗨av一区二区三区| 日韩成人av影视| 精品午夜一区二区三区在线观看 | 国产喷白浆一区二区三区| 日韩毛片精品高清免费| 五月天激情综合| 国精产品一区一区三区mba视频 | 免费亚洲电影在线| 国产露脸91国语对白| 99热这里都是精品| 欧美老女人在线| 国产亚洲精品福利| 亚洲综合网站在线观看| 久久丁香综合五月国产三级网站| 成人午夜av电影| 欧美精品亚洲二区| 欧美激情一区二区在线| 亚洲成人动漫精品| 国产成人激情av| 欧美日韩视频在线观看一区二区三区| 精品乱码亚洲一区二区不卡| 欧美激情一区二区在线| 日韩黄色小视频| 91在线小视频| 精品国产乱码久久久久久老虎| 亚洲欧美日韩小说| 国产精品资源在线观看| 欧美性色黄大片| 国产精品免费网站在线观看| 偷窥少妇高潮呻吟av久久免费| 夫妻av一区二区| 日韩视频免费观看高清完整版 | 毛片av一区二区三区| 99久久精品情趣| 日韩欧美国产精品一区| 成人免费一区二区三区在线观看| 蜜桃视频第一区免费观看| 日本韩国视频一区二区| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲电影视频在线| aa级大片欧美| 日本一区二区免费在线观看视频| 日韩一区欧美二区| 欧美综合在线视频| 日韩码欧中文字| 成人高清伦理免费影院在线观看| 欧美一区二区视频免费观看| 亚洲精品一二三四区| 国产ts人妖一区二区| 欧美一级理论性理论a| 亚洲高清不卡在线| 色综合天天综合狠狠| 国产女人aaa级久久久级| 极品少妇一区二区| 91精品国产aⅴ一区二区| 亚洲精品一卡二卡| 色婷婷国产精品| 亚洲欧洲中文日韩久久av乱码| 成人一二三区视频| 国产三级一区二区| 国产99久久久国产精品免费看| 2017欧美狠狠色| 国产精品亚洲成人| 国产亚洲短视频| 久久国产综合精品| 精品久久国产老人久久综合| 麻豆专区一区二区三区四区五区| 91精品蜜臀在线一区尤物| 婷婷综合久久一区二区三区| 精品视频免费在线| 亚洲成在人线在线播放| 337p亚洲精品色噜噜噜| 久久精品国产精品亚洲精品| 欧美一级二级三级乱码| 久久99精品久久久久久| 精品国产91洋老外米糕| 欧美日韩精品福利| 欧美aa在线视频| 久久免费午夜影院| jlzzjlzz欧美大全| 一区二区三区四区av| 欧美综合一区二区三区| 五月天国产精品| 亚洲精品一区二区三区蜜桃下载| 狠狠色丁香婷综合久久| 国产视频在线观看一区二区三区| 99久久久精品免费观看国产蜜| 亚洲欧美成人一区二区三区| 欧美日韩国产综合视频在线观看| 日本美女一区二区三区视频| 精品国产伦一区二区三区观看体验 | 不卡视频在线观看| 一区二区三区精品| 欧美一区二区三区四区久久| 狠狠色丁香久久婷婷综合丁香| 国产精品国产三级国产普通话99 | 日日夜夜免费精品| 欧美精品一区男女天堂| 成人av电影在线| 亚洲成人你懂的|