Documentation of 'net.jpountz.util.ByteBufferUtils' Java class
ByteBufferUtils
net.jpountz.util

Enum ByteBufferUtils

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ByteBufferUtils>


    public enum ByteBufferUtils
    extends java.lang.Enum<ByteBufferUtils>
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void checkNotReadOnly(java.nio.ByteBuffer buffer) 
      static void checkRange(java.nio.ByteBuffer buf, int off) 
      static void checkRange(java.nio.ByteBuffer buf, int off, int len) 
      static java.nio.ByteBuffer inLittleEndianOrder(java.nio.ByteBuffer buf) 
      static java.nio.ByteBuffer inNativeByteOrder(java.nio.ByteBuffer buf) 
      static byte readByte(java.nio.ByteBuffer buf, int i) 
      static int readInt(java.nio.ByteBuffer buf, int i) 
      static int readIntLE(java.nio.ByteBuffer buf, int i) 
      static long readLong(java.nio.ByteBuffer buf, int i) 
      static long readLongLE(java.nio.ByteBuffer buf, int i) 
      static int readShortLE(java.nio.ByteBuffer buf, int i) 
      static ByteBufferUtils valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ByteBufferUtils[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      static void writeByte(java.nio.ByteBuffer dest, int off, int i) 
      static void writeInt(java.nio.ByteBuffer buf, int i, int v) 
      static void writeLong(java.nio.ByteBuffer buf, int i, long v) 
      static void writeShortLE(java.nio.ByteBuffer dest, int off, int i) 
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static ByteBufferUtils[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ByteBufferUtils c : ByteBufferUtils.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ByteBufferUtils valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • checkRange

        public static void checkRange(java.nio.ByteBuffer buf,
                                      int off,
                                      int len)
      • checkRange

        public static void checkRange(java.nio.ByteBuffer buf,
                                      int off)
      • inLittleEndianOrder

        public static java.nio.ByteBuffer inLittleEndianOrder(java.nio.ByteBuffer buf)
      • inNativeByteOrder

        public static java.nio.ByteBuffer inNativeByteOrder(java.nio.ByteBuffer buf)
      • readByte

        public static byte readByte(java.nio.ByteBuffer buf,
                                    int i)
      • writeInt

        public static void writeInt(java.nio.ByteBuffer buf,
                                    int i,
                                    int v)
      • readInt

        public static int readInt(java.nio.ByteBuffer buf,
                                  int i)
      • readIntLE

        public static int readIntLE(java.nio.ByteBuffer buf,
                                    int i)
      • writeLong

        public static void writeLong(java.nio.ByteBuffer buf,
                                     int i,
                                     long v)
      • readLong

        public static long readLong(java.nio.ByteBuffer buf,
                                    int i)
      • readLongLE

        public static long readLongLE(java.nio.ByteBuffer buf,
                                      int i)
      • writeByte

        public static void writeByte(java.nio.ByteBuffer dest,
                                     int off,
                                     int i)
      • writeShortLE

        public static void writeShortLE(java.nio.ByteBuffer dest,
                                        int off,
                                        int i)
      • checkNotReadOnly

        public static void checkNotReadOnly(java.nio.ByteBuffer buffer)
      • readShortLE

        public static int readShortLE(java.nio.ByteBuffer buf,
                                      int i)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.