(byte)(0xff & (v >> 8)) (byte)(0xff & v)
The bytes written by this method may be read by the readShort
method of interface DataInput
, which will then return a short
equal to (short)v
.
@param v the short
value to be written.
@throws IOException if an I/O error occurs.
value
)into the receiver's underlying stream.
@param value The primitive data to write
@throws IOException If an IO exception happened when writing the primitive data.
v
to the stream. The 16 high-order bits of v
are ignored. If the stream uses network byte order, the bytes written, in order, will be: (byte)((v >> 8) & 0xff) (byte)(v & 0xff)Otherwise, the bytes written will be:
(byte)(v & 0xff) (byte)((v >> 8) & 0xff)
If the bit offset within the stream is non-zero, the remainder of the current byte is padded with 0s and written out first. The bit offset will be 0 after the write.
@param v an int
containing the short value to bewritten.
@exception IOException if an I/O error occurs.
short
to the bytes message stream as two bytes, high byte first.
@param value the short
to be written
@throws JMSException if the JMS provider fails to write the message due to some internal error.
@throws MessageNotWriteableException if the message is in read-only mode.
short
to the stream message.
@param value the short
value to be written
@throws JMSException if the JMS provider fails to write the messagedue to some internal error.
@throws MessageNotWriteableException if the message is in read-onlymode.
short
to the bytes message stream as two bytes, high byte first.
@param value the short
to be written
@throws JMSException if the JMS provider fails to write the message dueto some internal error.
@throws MessageNotWriteableException if the message is in read-only mode.
short
to the stream message.
@param value the short
value to be written
@throws JMSException if the JMS provider fails to write the message dueto some internal error.
@throws MessageNotWriteableException if the message is in read-only mode.
short
to the bytes message stream as two bytes, high byte first.
@param value the short
to be written
@throws JMSException if the JMS provider fails to write the message due to some internal error.
@throws MessageNotWriteableException if the message is in read-only mode.
short
to the stream message.
@param value the short
value to be written
@throws JMSException if the JMS provider fails to write the messagedue to some internal error.
@throws MessageNotWriteableException if the message is in read-onlymode.
DataOutput
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|