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

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

?? bytesmessageimpl.java

?? 一個java方面的消息訂閱發(fā)送的源碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
        try {
            getOutputStream().writeLong(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Convert the float argument to an <code>int</code> using the
     * <code>floatToIntBits</code> method in class <code>Float</code>,
     * and then writes that <code>int</code> value to the bytes message
     * stream as a 4-byte quantity, high byte first.
     *
     * @param value the <code>float</code> value to be written.
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     * @throws MessageNotWriteableException if message is in read-only mode
     */
    public final void writeFloat(float value) throws JMSException {
        checkWrite();
        try {
            getOutputStream().writeFloat(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }


    /**
     * Convert the double argument to a <code>long</code> using the
     * <code>doubleToLongBits</code> method in class <code>Double</code>,
     * and then writes that <code>long</code> value to the bytes message
     * stream as an 8-byte quantity, high byte first.
     *
     * @param value the <code>double</code> value to be written.
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     * @throws MessageNotWriteableException if message is in read-only mode
     */
    public final void writeDouble(double value) throws JMSException {
        checkWrite();
        try {
            getOutputStream().writeDouble(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a string to the bytes message stream using UTF-8 encoding in a
     * machine-independent manner.
     *
     * <p>For more information on the UTF-8 format, see "File System Safe
     * UCS Transformation Format (FSS_UFT)", X/Open Preliminary Specification,
     * X/Open Company Ltd., Document Number: P316. This information also
     * appears in ISO/IEC 10646, Annex P.
     *
     * @param value the <code>String</code> value to be written
     * @throws MessageNotWriteableException if message is in read-only mode
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     */
    public final void writeUTF(String value) throws JMSException {
        checkWrite();
        try {
            getOutputStream().writeUTF(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a byte array to the bytes message stream.
     *
     * @param value the byte array to be written.
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     * @throws MessageNotWriteableException if message is in read-only mode
     */
    public final void writeBytes(byte[] value) throws JMSException {
        checkWrite();
        try {
            getOutputStream().write(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a portion of a byte array to the bytes message stream
     *
     * @param value the byte array value to be written.
     * @param offset the initial offset within the byte array.
     * @param length the number of bytes to use.
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     * @throws MessageNotWriteableException if message is in read-only mode
     */
    public final void writeBytes(byte[] value, int offset, int length)
        throws JMSException {
        checkWrite();
        try {
            getOutputStream().write(value, offset, length);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a Java object to the bytes message stream.
     *
     * <p>Note that this method only works for the objectified primitive
     * object types (Integer, Double, Long ...), String's and byte arrays.
     *
     * @param value the Java object to be written. Must not be null.
     *
     * @throws JMSException if JMS fails to write message due to some internal
     * JMS error
     * @throws MessageFormatException if object is invalid type
     * @throws MessageNotWriteableException if message in read-only mode
     * @throws NullPointerException if parameter <code>value</code> is null
     */
    public final void writeObject(Object value) throws JMSException {
        if (value instanceof Boolean) {
            writeBoolean(((Boolean) value).booleanValue());
        } else if (value instanceof Byte) {
            writeByte(((Byte) value).byteValue());
        } else if (value instanceof Short) {
            writeShort(((Short) value).shortValue());
        } else if (value instanceof Character) {
            writeChar(((Character) value).charValue());
        } else if (value instanceof Integer) {
            writeInt(((Integer) value).intValue());
        } else if (value instanceof Long) {
            writeLong(((Long) value).longValue());
        } else if (value instanceof Float) {
            writeFloat(((Float) value).floatValue());
        } else if (value instanceof Double) {
            writeDouble(((Double) value).doubleValue());
        } else if (value instanceof String) {
            writeUTF((String) value);
        } else if (value instanceof byte[]) {
            writeBytes((byte[]) value);
        } else if (value == null) {
            throw new NullPointerException(
                "BytesMessage does not support null");
        } else {
            throw new MessageFormatException("Cannot write objects of type=" +
                value.getClass().getName());
        }
    }

    /**
     * Put the message body in read-only mode, and reposition the stream of
     * bytes to the beginning.
     *
     * @throws JMSException if JMS fails to reset the message due to some
     * internal JMS error
     */
    public final void reset() throws JMSException {
        try {
            if (!_bodyReadOnly) {
                _bodyReadOnly = true;
                if (_out != null) {
                    _out.flush();
                    _bytes = _byteOut.toByteArray();
                    _byteOut = null;
                    _out.close();
                    _out = null;
                }
            } else {
                if (_in != null) {
                    _byteIn = null;
                    _in.close();
                    _in = null;
                }
            }
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Overide the super class method to reset the streams, and put the
     * message body in write only mode.
     *
     * <p>If <code>clearBody</code> is called on a message in read-only mode,
     * the message body is cleared and the message is in write-only mode.
     * bytes to the beginning.
     *
     *	<p>If <code>clearBody</code> is called on a message already in
     * 	write-only mode, the spec does not define the outcome, so do nothing.
     * 	Client must then call <code>reset</code>, followed by
     *	<code>clearBody</code> to reset the stream at the beginning for a
     *	new write.
     * @throws JMSException if JMS fails to reset the message due to some
     * internal JMS error
     */
    public final void clearBody() throws JMSException {
        try {
            if (_bodyReadOnly) {
                // in read-only mode
                _bodyReadOnly = false;
                if (_in != null) {
                    _byteIn = null;
                    _in.close();
                    _in = null;
                    _offset = 0;
                }
            } else if (_out != null) {
                // already in write-only mode
                _byteOut = null;
                _out.close();
                _out = null;
            }
            _bytes = EMPTY;
            _byteOut = null;
            _out = null;
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Set the read-only mode of the message.
     *
     * @param readOnly if true, make the message body and properties read-only,
     * and invoke {@link #reset}
     * @throws JMSException if the read-only mode cannot be changed
     */
    public final void setReadOnly(boolean readOnly) throws JMSException {
        if (readOnly) {
            reset();
        }
        super.setReadOnly(readOnly);
    }

    /**
     * Prepare to do a read.
     *
     * @throws JMSException if the current position in the stream can't be
     * marked
     * @throws MessageNotReadableException if the message is in write-only mode
     */
    private final void prepare() throws JMSException {
        checkRead();
        getInputStream();
        try {
            _in.mark(_bytes.length - _in.available());
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Reverts the stream to its prior position if an I/O exception is
     * thrown, and propagates the exception as a JMSException.
     *
     * @param exception the exception that caused the reset
     * @throws JMSException for general IOException errors
     * @throws MessageEOFException if end-of-file was reached
     */
    private final void revert(IOException exception) throws JMSException {
        try {
            _in.reset();
        } catch (IOException ignore) {
        }
        JMSException error = null;
        if (exception instanceof EOFException) {
            error = new MessageEOFException(exception.getMessage());
        } else if (exception instanceof UTFDataFormatException) {
            error = new MessageFormatException(exception.getMessage());
        } else {
            error = new JMSException(exception.getMessage());
        }
        error.setLinkedException(exception);
        throw error;
    }

    /**
     * Initialise the input stream if it hasn't been intialised.
     *
     * @return the input stream
     */
    private DataInputStream getInputStream() {
        if (_in == null) {
            _byteIn = new ByteArrayInputStream(_bytes, _offset,
                _bytes.length - _offset);
            _in = new DataInputStream(_byteIn);
        }
        return _in;
    }

    /**
     * Initialise the output stream if it hasn't been intialised.
     *
     * @return the output stream
     * @throws IOException if the output stream can't be created
     */
    private final DataOutputStream getOutputStream() throws IOException {
        if (_out == null) {
            _byteOut = new ByteArrayOutputStream();
            _out = new DataOutputStream(_byteOut);
            _out.write(_bytes);
        }
        return _out;
    }

    /**
     * Helper to raise a JMSException when an I/O error occurs.
     *
     * @param exception the exception that caused the failure
     * @throws JMSException
     */
    private final void raise(IOException exception) throws JMSException {
        JMSException error = new JMSException(exception.getMessage());
        error.setLinkedException(exception);
        throw error;
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱人伦偷精品视频不卡| 国产日本欧洲亚洲| 欧美日韩国产综合草草| 91久久国产综合久久| 一本大道av伊人久久综合| 色综合天天狠狠| 色一区在线观看| 欧美在线免费视屏| 欧美日韩国产高清一区| 欧美精品在线观看一区二区| 欧美日韩电影在线播放| 欧美视频三区在线播放| 91精品国产乱码久久蜜臀| 欧美岛国在线观看| 久久精品在线免费观看| 国产精品欧美经典| 亚洲精品自拍动漫在线| 亚洲永久精品大片| 日韩精品乱码免费| 精品在线免费视频| 国产成人精品三级| 91在线国产观看| 欧美日韩专区在线| 日韩午夜av电影| 国产亚洲短视频| 亚洲人成网站精品片在线观看 | 日韩精品一级中文字幕精品视频免费观看 | 亚洲成人一二三| 日本一区中文字幕| 国产综合色产在线精品| yourporn久久国产精品| 在线观看免费视频综合| 91精品国产aⅴ一区二区| 久久久蜜桃精品| 亚洲色图制服诱惑| 日韩国产在线一| 国产精品一区二区久久精品爱涩| 成人小视频免费观看| 在线观看日韩高清av| 日韩精品综合一本久道在线视频| 国产欧美日韩激情| 亚洲电影你懂得| 国产精品资源站在线| 色婷婷综合五月| 日韩视频一区二区三区| 国产精品美女久久久久久久网站| 午夜免费欧美电影| 国产成人精品一区二区三区四区 | 欧美久久一二区| 国产日韩在线不卡| 亚洲国产视频一区二区| 久久国产日韩欧美精品| 91麻豆高清视频| 久久综合狠狠综合| 一区二区三区四区在线播放| 国产麻豆成人传媒免费观看| 欧美偷拍一区二区| 国产欧美1区2区3区| 亚洲超碰97人人做人人爱| 国产91丝袜在线播放九色| 欧美日韩一区二区三区在线看| 国产亚洲精品aa| 蜜臀av在线播放一区二区三区| 91浏览器在线视频| 久久综合久久综合久久| 亚洲国产视频网站| 99vv1com这只有精品| 久久综合999| 免费视频最近日韩| 色婷婷综合久久久中文一区二区 | 亚洲精品国产精华液| 国产不卡在线一区| 精品欧美一区二区久久| 亚洲国产综合91精品麻豆| 99国产一区二区三精品乱码| 久久久蜜桃精品| 蜜臀av性久久久久蜜臀av麻豆| 在线观看视频一区二区| 亚洲欧美在线视频观看| 国产精品白丝jk白祙喷水网站| 日韩亚洲欧美成人一区| 亚洲国产精品欧美一二99| 97久久超碰国产精品| 久久久国产一区二区三区四区小说 | 亚洲精品欧美在线| 不卡av免费在线观看| 久久精品人人做人人爽人人| 精品在线亚洲视频| 日韩亚洲欧美成人一区| 日本中文字幕一区二区视频| 欧美日韩精品福利| 亚洲国产精品久久久久婷婷884| 91在线精品一区二区| 国产精品久久久久毛片软件| 国产成人av网站| 久久久不卡网国产精品二区| 九九视频精品免费| 日韩免费一区二区| 麻豆91在线播放免费| 日韩欧美一卡二卡| 麻豆精品精品国产自在97香蕉| 91精品在线免费| 日本aⅴ免费视频一区二区三区| 欧美老肥妇做.爰bbww| 午夜a成v人精品| 欧美电影一区二区三区| 五月婷婷激情综合网| 欧美日韩高清不卡| 蜜臀a∨国产成人精品| 日韩三级视频在线看| 黄网站免费久久| 久久精品人人做人人综合| 国产成人av影院| 成人免费一区二区三区在线观看| 99视频热这里只有精品免费| 亚洲欧美日韩小说| 欧美三级日本三级少妇99| 日韩精品一二三区| 精品国产区一区| 成人激情动漫在线观看| 亚洲人成网站色在线观看| 欧美丝袜丝nylons| 蜜桃精品视频在线| 久久精品一区八戒影视| 99综合影院在线| 午夜精品久久久久影视| 欧美一级片在线| 国产电影一区二区三区| 亚洲精品第1页| 91精品欧美一区二区三区综合在| 国内精品自线一区二区三区视频| 国产精品美女久久久久久久久| 欧美专区在线观看一区| 日韩制服丝袜先锋影音| 久久综合久久综合亚洲| 99久久精品国产麻豆演员表| 亚洲mv大片欧洲mv大片精品| 欧美精品一区二区三| av午夜一区麻豆| 天天综合天天做天天综合| 26uuu亚洲综合色| 91视频免费播放| 蜜桃视频第一区免费观看| 国产精品毛片久久久久久久| 欧美天天综合网| 国产成人免费视频网站高清观看视频| 亚洲欧美一区二区三区国产精品| 在线成人av网站| 国产不卡免费视频| 亚洲国产精品综合小说图片区| 久久奇米777| 欧美视频一二三区| 福利一区二区在线| 日韩黄色免费网站| ...av二区三区久久精品| 制服丝袜中文字幕一区| 成人精品视频一区| 日韩av高清在线观看| 国产精品大尺度| 欧美大片一区二区| 色拍拍在线精品视频8848| 国内成+人亚洲+欧美+综合在线| 亚洲伦理在线精品| 久久久久久免费网| 欧美麻豆精品久久久久久| 成人午夜av电影| 久久精品国产精品亚洲红杏| 亚洲自拍偷拍九九九| 日本一区二区三区在线观看| 欧美一区二区视频在线观看2020| 99免费精品在线| 黑人巨大精品欧美一区| 亚洲chinese男男1069| 日韩毛片一二三区| 国产三级久久久| 精品免费国产二区三区| 欧美日韩和欧美的一区二区| 丁香五精品蜜臀久久久久99网站| 日本免费新一区视频| 一区二区三区不卡在线观看 | 亚洲免费观看高清完整版在线 | 精品无码三级在线观看视频| 图片区小说区区亚洲影院| 亚洲激情在线播放| 成人欧美一区二区三区黑人麻豆| 精品国产乱码久久| 在线播放视频一区| 在线日韩国产精品| 91丨九色丨蝌蚪富婆spa| 国产成人免费在线观看不卡| 精品中文字幕一区二区| 免费精品99久久国产综合精品| 亚洲国产综合在线| 亚洲综合男人的天堂| 亚洲人成网站精品片在线观看| 日本一区二区三区电影| 久久久久久久综合| 久久久久97国产精华液好用吗| 26uuuu精品一区二区| 精品国产3级a|