net.sf.neem.impl
Class UUIDs

java.lang.Object
  extended by net.sf.neem.impl.UUIDs

public abstract class UUIDs
extends java.lang.Object

UUID manipulation utilities.


Method Summary
static java.util.UUID readUUIDFromBuffer(java.nio.ByteBuffer[] msg)
          Read an UUID from an array of ByteBuffers into an UUID.
static java.nio.ByteBuffer writeUUIDToBuffer(java.util.UUID uuid)
          Write an UUID to a ByteBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeUUIDToBuffer

public static java.nio.ByteBuffer writeUUIDToBuffer(java.util.UUID uuid)
Write an UUID to a ByteBuffer.

Parameters:
uuid - The uuid to be written.
Returns:
The Buffer with the uuid written into.

readUUIDFromBuffer

public static java.util.UUID readUUIDFromBuffer(java.nio.ByteBuffer[] msg)
Read an UUID from an array of ByteBuffers into an UUID.

Parameters:
msg - The buffer from which to read the UUID from.
Returns:
The address read.


Copyright © 2005 University of Minho, Portugal. All Rights Reserved.