public static String readRGBs(ByteBuffer buffer,int strLen){
  long l=Buffers.readUInt(buffer);
  StringBuilder sb=new StringBuilder();
  for (int i=strLen / 2 - 1; i >= 0; i--) {
    sb.append(Integer.toHexString((int)((l >> i * 8) & 0xff)));
  }
  return sb.toString();
}

public static String readRGBs ( ByteBuffer buffer , int strLen ) { long l = Buffers . readUInt ( buffer ) ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = strLen / 2 - 1 ; i >= 0 ; i -- ) { sb . append ( Integer . toHexString ( ( int ) ( ( l > > i * 8 ) & 0xff ) ) ) ; } return sb . toString ( ) ; }
read resource value rgb / argb type .
