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

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

?? streammessageimpl.java

?? 一個java方面的消息訂閱發(fā)送的源碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    /*
     * Read a 32-bit integer from the stream message
     *
     * @return a 32-bit integer value from the stream message, interpreted
     * as an <code>int</code>
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     * @throws NumberFormatException if numeric conversion is invalid
     */
    public final int readInt() throws JMSException {
        int result = 0;
        prepare();
        try {
            result = FormatConverter.getInt(readNext());
        } catch (MessageFormatException exception) {
            revert(exception);
        } catch (NumberFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /*
     * Read a 64-bit integer from the stream message
     *
     * @return a 64-bit integer value from the stream message, interpreted as
     * a <code>long</code>
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     * @throws NumberFormatException if numeric conversion is invalid
     */
    public final long readLong() throws JMSException {
        long result = 0;
        prepare();
        try {
            result = FormatConverter.getLong(readNext());
        } catch (MessageFormatException exception) {
            revert(exception);
        } catch (NumberFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /**
     * Read a <code>float</code> from the stream message
     *
     * @return a <code>float</code> value from the stream message
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     * @throws NullPointerException if the value is null
     * @throws NumberFormatException if numeric conversion is invalid
     */
    public final float readFloat() throws JMSException {
        float result = 0;
        prepare();
        try {
            result = FormatConverter.getFloat(readNext());
        } catch (MessageFormatException exception) {
            revert(exception);
        } catch (NullPointerException exception) {
            revert(exception);
        } catch (NumberFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /**
     * Read a <code>double</code> from the stream message
     *
     * @return a <code>double</code> value from the stream message
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     * @throws NullPointerException if the value is null
     * @throws NumberFormatException if numeric conversion is invalid
     */
    public final double readDouble() throws JMSException {
        double result = 0;
        prepare();
        try {
            result = FormatConverter.getDouble(readNext());
        } catch (MessageFormatException exception) {
            revert(exception);
        } catch (NullPointerException exception) {
            revert(exception);
        } catch (NumberFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /**
     * Read in a string from the stream message
     *
     * @return a Unicode string from the stream message
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     */
    public final String readString() throws JMSException {
        String result = null;
        prepare();
        try {
            result = FormatConverter.getString(readNext());
        } catch (MessageFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /**
     * Read a byte array field from the stream message into the
     * specified byte[] object (the read buffer).
     * <p>
     * To read the field value, readBytes should be successively called
     * until it returns a value less than the length of the read buffer.
     * The value of the bytes in the buffer following the last byte
     * read are undefined.
     * <p>
     * If readBytes returns a value equal to the length of the buffer, a
     * subsequent readBytes call must be made. If there are no more bytes
     * to be read this call will return -1.
     * <p>
     * If the bytes array field value is null, readBytes returns -1.
     * <p>
     * If the bytes array field value is empty, readBytes returns 0.
     * <p>
     * Once the first readBytes call on a byte[] field value has been done,
     * the full value of the field must be read before it is valid to read
     * the next field. An attempt to read the next field before that has
     * been done will throw a MessageFormatException.
     * <p>
     * To read the byte field value into a new byte[] object, use the
     * {@link #readObject} method.
     *
     * @param value the buffer into which the data is read.
     * @return the total number of bytes read into the buffer, or -1 if
     * there is no more data because the end of the byte field has been
     * reached.
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if an end of message stream
     * @throws MessageFormatException if this type conversion is invalid
     * @throws MessageNotReadableException if message is in write-only mode
     */
    public final int readBytes(byte[] value) throws JMSException {
        checkRead();
        getInputStream();
        int read = 0; // the number of bytes read
        if (_readBytes == 0) {
            // read the next byte array field
            try {
                _in.mark(_bytes.length - _in.available());
                byte type = (byte) (_in.readByte() & 0x0F);
                if (type == NULL) {
                    return -1;
                } else if (type != BYTE_ARRAY) {
                    _in.reset();
                    if (type < TYPE_NAMES.length) {
                        throw new MessageFormatException(
                            "Expected type=" + TYPE_NAMES[BYTE_ARRAY]
                            + ", but got type=" + TYPE_NAMES[type]);
                    } else {
                        throw new MessageFormatException(
                            "StreamMessage corrupted");
                    }
                }
            } catch (IOException exception) {
                raise(exception);
            }
            try {
                _byteArrayLength = _in.readInt();
            } catch (IOException exception) {
                raise(exception);
            }
        }

        if (_byteArrayLength == 0) {
            // No bytes to read. Return -1 if this is an incremental read
            // or 0 if the byte array was empty
            if (_readBytes != 0) {
                // completing an incremental read
                read = -1;
            }
            _readBytes = 0;   // indicates finished reading the byte array
        } else if (value.length <= _byteArrayLength) {
            // bytes to read >= size of target
            read = value.length;
            try {
                _in.readFully(value);
            } catch (IOException exception) {
                raise(exception);
            }
            _byteArrayLength -= value.length;
            ++_readBytes;
        } else {
            // bytes to read < size of target
            read = _byteArrayLength;
            try {
                _in.readFully(value, 0, _byteArrayLength);
            } catch (IOException exception) {
                raise(exception);
            }
            _readBytes = 0;
        }
        return read;
    }

    /**
     * Read a Java object from the stream message
     * <p>
     * Note that this method can be used to return in objectified format,
     * an object that had been written to the stream with the equivalent
     * <code>writeObject</code> method call, or it's equivalent primitive
     * write<type> method.
     * <p>
     * Note that byte values are returned as byte[], not Byte[].
     *
     * @return a Java object from the stream message, in objectified
     * format (eg. if it set as an int, then a Integer is returned).
     * @throws JMSException if JMS fails to read message due to some internal
     * JMS error
     * @throws MessageEOFException if end of message stream
     * @throws MessageNotReadableException if message is in write-only mode
     */
    public final Object readObject() throws JMSException {
        Object result = null;
        prepare();
        try {
            result = readNext();
        } catch (MessageFormatException exception) {
            revert(exception);
        }
        return result;
    }

    /**
     * Write a <code>boolean</code> to the stream message.
     * The value <code>true</code> is written out as the value
     * <code>(byte)1</code>; the value <code>false</code> is written out as
     * the value <code>(byte)0</code>.
     *
     * @param value the <code>boolean</code> value to be written.
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeBoolean(boolean value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            // encode the boolean value in the type byte
            _out.writeByte(BOOLEAN | ((value) ? 1 << 4 : 0));
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write out a <code>byte</code> to the stream message
     *
     * @param value the <code>byte</code> value to be written
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeByte(byte value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(BYTE);
            _out.writeByte(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a <code>short</code> to the stream message
     *
     * @param value the <code>short</code> to be written
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeShort(short value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(SHORT);
            _out.writeShort(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a <code>char</code> to the stream message
     *
     * @param value the <code>char</code> value to be written
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeChar(char value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(CHAR);
            _out.writeChar(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write an <code>int</code> to the stream message
     *
     * @param value the <code>int</code> to be written
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeInt(int value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(INT);
            _out.writeInt(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a <code>long</code> to the stream message
     *
     * @param value the <code>long</code> to be written
     * @throws JMSException if JMS fails to write message due to
     * some internal JMS error
     * @throws MessageNotWriteableException if message in read-only mode
     */
    public final void writeLong(long value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(LONG);
            _out.writeLong(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a <code>float</code> to the stream message
     *
     * @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 in read-only mode
     */
    public final void writeFloat(float value) throws JMSException {
        checkWrite();
        try {
            getOutputStream();
            _out.writeByte(FLOAT);
            _out.writeFloat(value);
        } catch (IOException exception) {
            raise(exception);
        }
    }

    /**
     * Write a <code>double</code> to the stream message
     *
     * @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 in read-only mode
     */
    public final void writeDouble(double value) throws JMSException {
        checkWrite();
        try {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产人妖乱国产精品人妖| 欧美一区中文字幕| 亚洲欧洲日本在线| av电影在线观看一区| 亚洲精品ww久久久久久p站| 91久久免费观看| 日韩av高清在线观看| 欧美成人aa大片| 国产成人午夜99999| 亚洲欧美日韩在线播放| 欧美片在线播放| 精品无人区卡一卡二卡三乱码免费卡| 久久久国产综合精品女国产盗摄| a在线播放不卡| 亚洲国产综合视频在线观看| 日韩精品中文字幕一区二区三区| 国产成人综合在线播放| 亚洲欧美日韩国产另类专区| 777欧美精品| 成人网在线播放| 亚洲v中文字幕| 国产三级一区二区| 在线视频中文字幕一区二区| 久久精品国产99国产| 国产精品成人一区二区艾草| 欧美日韩一卡二卡三卡| 国产一区二区视频在线播放| 亚洲国产精品久久艾草纯爱| 久久综合色婷婷| 欧美日韩性生活| 成人av动漫在线| 麻豆国产精品一区二区三区| 日韩一区日韩二区| 精品久久人人做人人爰| 色丁香久综合在线久综合在线观看| 九一九一国产精品| 亚洲已满18点击进入久久| 国产日产欧美一区二区三区| 欧美日韩免费观看一区三区| 成人午夜av电影| 老司机精品视频导航| 一区二区三区加勒比av| 久久久久久久久久久99999| 欧美视频精品在线| av高清久久久| 国产91综合一区在线观看| 蜜臀91精品一区二区三区| 亚洲精品va在线观看| 国产精品热久久久久夜色精品三区| 日韩一级二级三级精品视频| 欧美午夜理伦三级在线观看| jlzzjlzz欧美大全| 国产aⅴ综合色| 国产一区二三区好的| 麻豆精品一区二区综合av| 香蕉影视欧美成人| 夜夜嗨av一区二区三区中文字幕 | 欧美麻豆精品久久久久久| a4yy欧美一区二区三区| 国产a级毛片一区| 国产乱码字幕精品高清av| 久草中文综合在线| 久久精品国产免费| 久久99这里只有精品| 免费观看在线色综合| 亚洲高清三级视频| 亚洲高清在线精品| 亚洲成av人影院| 亚洲永久免费av| 亚洲国产精品麻豆| 午夜视频一区在线观看| 亚洲v中文字幕| 亚洲成av人片在线| 午夜欧美一区二区三区在线播放| 亚洲成人综合在线| 水野朝阳av一区二区三区| 亚洲国产精品一区二区久久恐怖片 | 精品一区二区三区视频| 久久精品国产一区二区| 精品在线播放免费| 国产精品一二三在| 成人av电影在线播放| 色哟哟精品一区| 欧美精品久久天天躁| 欧美一级生活片| 欧美不卡一区二区| 国产欧美一区二区三区沐欲| 国产精品久99| 一区二区三区在线观看视频| 午夜精品影院在线观看| 捆绑变态av一区二区三区| 国产盗摄一区二区三区| 91网站在线播放| 欧美日韩亚洲综合一区| 精品免费视频一区二区| 国产偷国产偷亚洲高清人白洁| 国产精品美女久久久久av爽李琼| 亚洲乱码国产乱码精品精的特点 | 国产欧美久久久精品影院| 国产精品视频观看| 亚洲国产中文字幕在线视频综合| 日本成人在线电影网| 国产精品一区免费在线观看| 99精品黄色片免费大全| 9191成人精品久久| 日本一区二区久久| 亚洲午夜久久久久久久久久久| 久久99久久精品欧美| 成人av在线看| 欧美一级在线免费| 亚洲欧洲日韩在线| 免费的成人av| 91麻豆成人久久精品二区三区| 欧美一区二区美女| 亚洲色图19p| 蜜乳av一区二区| 日本久久一区二区| 国产亚洲视频系列| 亚洲第一成年网| av中文字幕不卡| 欧美www视频| 亚洲午夜av在线| 大美女一区二区三区| 欧美男男青年gay1069videost | 成人少妇影院yyyy| 日韩欧美亚洲国产精品字幕久久久| 久久精品水蜜桃av综合天堂| 亚洲一区二区欧美| 成人免费视频国产在线观看| 欧美一级国产精品| 亚洲午夜免费福利视频| 成人av电影在线播放| 久久综合久色欧美综合狠狠| 日日摸夜夜添夜夜添亚洲女人| 99久久精品国产麻豆演员表| www国产亚洲精品久久麻豆| 亚洲国产一区二区在线播放| www.亚洲人| 久久人人爽爽爽人久久久| 五月激情综合色| 欧美在线视频你懂得| 国产精品视频一二三区 | 亚洲视频一区二区在线观看| 极品瑜伽女神91| 91精品国产91久久久久久一区二区| 一区二区三区在线视频免费观看| 成人综合婷婷国产精品久久| 久久久蜜臀国产一区二区| 久久国产精品一区二区| 欧美久久久久久久久中文字幕| 亚洲精品国产a久久久久久 | 爽好久久久欧美精品| www.久久精品| 国产精品国产a级| 成人精品高清在线| 国产精品天干天干在观线| 国产一区二区三区不卡在线观看 | 久久久国产精品午夜一区ai换脸| 男人操女人的视频在线观看欧美| 在线影院国内精品| 一区二区三区成人在线视频| 在线欧美日韩国产| 亚洲成人av中文| 欧美三级一区二区| 污片在线观看一区二区| 91麻豆精品国产自产在线| 免费精品视频在线| 日韩一二三四区| 韩日av一区二区| 国产亚洲成aⅴ人片在线观看| 国产乱码精品一区二区三区忘忧草 | 日本中文字幕不卡| 日韩欧美一区二区视频| 激情欧美一区二区三区在线观看| 欧美精品一区二区三区蜜桃| 国产高清久久久| 国产精品久99| 欧美主播一区二区三区美女| 亚洲午夜久久久久久久久电影院 | 午夜影院久久久| 亚洲国产成人高清精品| 美女视频一区在线观看| 免费成人在线观看视频| 91精品国产色综合久久不卡电影 | 成人av免费在线播放| 中文字幕在线视频一区| 色哟哟精品一区| 午夜精品视频在线观看| 欧美大片拔萝卜| 丁香激情综合五月| 亚洲免费在线观看视频| 91麻豆精品国产91久久久久久| 精品午夜久久福利影院| 国产精品久久毛片a| 欧美性生活一区| 久久er精品视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 日韩一区二区免费高清| 国产精品一区二区视频| 亚洲综合在线观看视频|