net.jini.id.Uuid.writeLong()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(190)

本文整理了Java中net.jini.id.Uuid.writeLong()方法的一些代码示例,展示了Uuid.writeLong()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Uuid.writeLong()方法的具体详情如下:
包路径:net.jini.id.Uuid
类名称:Uuid
方法名:writeLong

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);
}

相关文章