Class SerializeUtils

java.lang.Object
org.red5.server.net.rtmp.event.SerializeUtils

public class SerializeUtils extends Object
The utility class provides conversion methods to ease the use of byte arrays, Mina IoBuffers, and NIO ByteBuffers.
Author:
Paul Gregoire (mondain@gmail.com)
  • Constructor Details

    • SerializeUtils

      public SerializeUtils()
  • Method Details

    • ByteBufferToByteArray

      public static byte[] ByteBufferToByteArray(org.apache.mina.core.buffer.IoBuffer buf)
    • NioByteBufferToByteArray

      public static byte[] NioByteBufferToByteArray(ByteBuffer buf)
    • ByteArrayToByteBuffer

      public static void ByteArrayToByteBuffer(byte[] byteBuf, org.apache.mina.core.buffer.IoBuffer buf)
    • ByteArrayToNioByteBuffer

      public static void ByteArrayToNioByteBuffer(byte[] byteBuf, ByteBuffer buf)