本文整理了Java中net.jini.id.Uuid.writeLong()
方法的一些代码示例,展示了Uuid.writeLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Uuid.writeLong()
方法的具体详情如下:
包路径:net.jini.id.Uuid
类名称:Uuid
方法名:writeLong
[英]Write a long value to an OutputStream in big-endian byte order.
[中]以大端字节顺序将长值写入输出流。
代码示例来源:origin: xap/xap
/**
* Marshals a binary representation of this <code>Uuid</code> to an <code>OutputStream</code>.
*
* <p>Specifically, this method writes the 128-bit value to the stream as 16 bytes in network
* (big-endian) byte order.
*
* @param out the <code>OutputStream</code> to write this <code>Uuid</code> to
* @throws IOException if an I/O exception occurs while performing this operation
* @throws NullPointerException if <code>out</code> is <code>null</code>
**/
public final void write(OutputStream out) throws IOException {
writeLong(bits0, out);
writeLong(bits1, out);
}
代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform
/**
* Marshals a binary representation of this <code>Uuid</code> to
* an <code>OutputStream</code>.
*
* <p>Specifically, this method writes the 128-bit value to the
* stream as 16 bytes in network (big-endian) byte order.
*
* @param out the <code>OutputStream</code> to write this
* <code>Uuid</code> to
*
* @throws IOException if an I/O exception occurs while performing
* this operation
*
* @throws NullPointerException if <code>out</code> is
* <code>null</code>
**/
public final void write(OutputStream out) throws IOException {
writeLong(bits0, out);
writeLong(bits1, out);
}
内容来源于网络,如有侵权,请联系作者删除!