L b64 b56 b48 b40 b32 b24 b16 b8
@param value the long value to write.
long
value, which is comprised of eight bytes, to the output stream. The byte values to be written, in the order shown, are: (byte)(0xff & (v >> 56)) (byte)(0xff & (v >> 48)) (byte)(0xff & (v >> 40)) (byte)(0xff & (v >> 32)) (byte)(0xff & (v >> 24)) (byte)(0xff & (v >> 16)) (byte)(0xff & (v >> 8)) (byte)(0xff & v)
The bytes written by this method may be read by the readLong
method of interface DataInput
, which will then return a long
equal to v
.
@param v the long
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. If the stream uses network byte order, the bytes written, in order, will be: (byte)((v >> 56) & 0xff) (byte)((v >> 48) & 0xff) (byte)((v >> 40) & 0xff) (byte)((v >> 32) & 0xff) (byte)((v >> 24) & 0xff) (byte)((v >> 16) & 0xff) (byte)((v >> 8) & 0xff) (byte)(v & 0xff)Otherwise, the bytes written will be:
(byte)(v & 0xff) (byte)((v >> 8) & 0xff) (byte)((v >> 16) & 0xff) (byte)((v >> 24) & 0xff) (byte)((v >> 32) & 0xff) (byte)((v >> 40) & 0xff) (byte)((v >> 48) & 0xff) (byte)((v >> 56) & 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 a long
containing the value to bewritten.
@exception IOException if an I/O error occurs.
long
value to be written.
@throws IOException if an I/O error occurs.
@see DataOutput#writeLong(long)
long
to the bytes message stream as eight bytes, high byte first.
@param value the long
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.
long
to the stream message.
@param value the long
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.
long
to the bytes message stream as eight bytes, high byte first.
@param value the long
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.
long
to the stream message.
@param value the long
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.
long
to the bytes message stream as eight bytes, high byte first.
@param value the long
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.
long
to the stream message.
@param value the long
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.
long
value, which is comprised of eight bytes, to the output stream. The byte values to be written, in the order shown, are:
<code> (byte)(0xff & (v >> 56)) (byte)(0xff & (v >> 48)) (byte)(0xff & (v >> 40)) (byte)(0xff & (v >> 32)) (byte)(0xff & (v >> 24)) (byte)(0xff & (v >> 16)) (byte)(0xff & (v >> 8)) (byte)(0xff & v) </code>
The bytes written by this method may be read by the readLong
method of interface DataInput
, which will then return a long
equal to v
.
@param v the long
value to be written.
@exception IOException if an I/O error occurs.
DataOutput
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|