Class FSTUtil

java.lang.Object
org.nustaq.serialization.util.FSTUtil

public class FSTUtil
extends java.lang.Object
Created with IntelliJ IDEA. User: ruedi Date: 29.11.12 Time: 20:38 To change this template use File | Settings | File Templates.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static long bufoff  
    static long choff  
    static long chscal  
    static long doubleoff  
    static long doublescal  
    static long floatoff  
    static long floatscal  
    static long intoff  
    static long intscal  
    static long longoff  
    static long longscal  
    static long refoff  
    static long refscal  
    static sun.misc.Unsafe unFlaggedUnsafe  
  • Constructor Summary

    Constructors 
    Constructor Description
    FSTUtil()  
  • Method Summary

    Modifier and Type Method Description
    static void clear​(int[] arr)  
    static void clear​(java.lang.Object[] arr)  
    static void clear​(java.lang.Object[] arr, int arrlen)  
    static java.lang.reflect.Method findDerivedMethod​(java.lang.Class clazz, java.lang.String metnam, java.lang.Class[] argClzz, java.lang.Class retClz)  
    static java.lang.reflect.Method findPrivateMethod​(java.lang.Class clazz, java.lang.String methName, java.lang.Class[] clazzArgs, java.lang.Class retClazz)  
    static java.util.List<java.lang.reflect.Field> getAllFields​(java.util.List<java.lang.reflect.Field> fields, java.lang.Class<?> type)  
    static java.lang.String getPackage​(java.lang.Class clazz)  
    static java.lang.Class getRealEnumClass​(java.lang.Class enumClass)  
    static sun.misc.Unsafe getUnsafe()  
    static boolean isPackEq​(java.lang.Class clazz1, java.lang.Class clazz2)  
    static boolean isPrimitiveArray​(java.lang.Class c)  
    static int nextPow2​(int num)  
    static void printEx​(java.lang.Throwable e)  
    static byte[] readAll​(java.io.InputStream is)  
    static <T extends java.lang.Throwable>
    void
    rethrow​(java.lang.Throwable exception)  
    static java.lang.String toString​(java.lang.Throwable th)  
    static int writeSignedVarInt​(int value, byte[] out, int index)  
    static int writeUnsignedVarInt​(int value, byte[] out, int index)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • unFlaggedUnsafe

      public static sun.misc.Unsafe unFlaggedUnsafe
    • refoff

      public static final long refoff
    • refscal

      public static final long refscal
    • bufoff

      public static final long bufoff
    • choff

      public static final long choff
    • intoff

      public static final long intoff
    • longoff

      public static final long longoff
    • doubleoff

      public static final long doubleoff
    • floatoff

      public static final long floatoff
    • intscal

      public static final long intscal
    • longscal

      public static final long longscal
    • chscal

      public static final long chscal
    • floatscal

      public static final long floatscal
    • doublescal

      public static final long doublescal
  • Constructor Details

  • Method Details

    • clear

      public static void clear​(int[] arr)
    • clear

      public static void clear​(java.lang.Object[] arr)
    • clear

      public static void clear​(java.lang.Object[] arr, int arrlen)
    • toString

      public static java.lang.String toString​(java.lang.Throwable th)
    • rethrow

      public static <T extends java.lang.Throwable> void rethrow​(java.lang.Throwable exception) throws T extends java.lang.Throwable
      Throws:
      T extends java.lang.Throwable
    • getPackage

      public static java.lang.String getPackage​(java.lang.Class clazz)
    • isPackEq

      public static boolean isPackEq​(java.lang.Class clazz1, java.lang.Class clazz2)
    • findPrivateMethod

      public static java.lang.reflect.Method findPrivateMethod​(java.lang.Class clazz, java.lang.String methName, java.lang.Class[] clazzArgs, java.lang.Class retClazz)
    • findDerivedMethod

      public static java.lang.reflect.Method findDerivedMethod​(java.lang.Class clazz, java.lang.String metnam, java.lang.Class[] argClzz, java.lang.Class retClz)
    • printEx

      public static void printEx​(java.lang.Throwable e)
    • isPrimitiveArray

      public static boolean isPrimitiveArray​(java.lang.Class c)
    • getUnsafe

      public static sun.misc.Unsafe getUnsafe()
    • writeSignedVarInt

      public static int writeSignedVarInt​(int value, byte[] out, int index)
    • writeUnsignedVarInt

      public static int writeUnsignedVarInt​(int value, byte[] out, int index)
    • getAllFields

      public static java.util.List<java.lang.reflect.Field> getAllFields​(java.util.List<java.lang.reflect.Field> fields, java.lang.Class<?> type)
    • readAll

      public static byte[] readAll​(java.io.InputStream is) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • nextPow2

      public static int nextPow2​(int num)
    • getRealEnumClass

      public static java.lang.Class getRealEnumClass​(java.lang.Class enumClass)