private static boolean determineUnaligned(){
  try {
    Class c=Class.forName("java.nio.Bits");
    Method m=c.getDeclaredMethod("unaligned");
    m.setAccessible(true);
    return (boolean)m.invoke(null);
  }
 catch (  ClassNotFoundException|NoSuchMethodException|SecurityException|IllegalAccessException|IllegalArgumentException|InvocationTargetException e) {
    return false;
  }
}

private static boolean determineUnaligned ( ) { try { Class c = Class . forName ( "java.nio.Bits" ) ; Method m = c . getDeclaredMethod ( "unaligned" ) ; m . setAccessible ( true ) ; return ( boolean ) m . invoke ( null ) ; } catch ( ClassNotFoundException | NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e ) { return false ; } }
return true if the hardware supported unaligned reads from memory .
