Documentation of 'edu.uci.jforests.util.Util' Java class
Util
edu.uci.jforests.util

Class Util



  • public class Util
    extends java.lang.Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • putLongInByteArray

        public static int putLongInByteArray(long l,
                                             byte[] array,
                                             int offset)
      • putIntInByteArray

        public static int putIntInByteArray(int value,
                                            byte[] array,
                                            int offset)
      • putBooleanInByteArray

        public static int putBooleanInByteArray(boolean value,
                                                byte[] array,
                                                int offset)
      • putShortInByteArray

        public static int putShortInByteArray(short value,
                                              byte[] array,
                                              int offset)
      • putFloatInByteArray

        public static int putFloatInByteArray(float f,
                                              byte[] array,
                                              int offset)
      • putDoubleInByteArray

        public static int putDoubleInByteArray(double d,
                                               byte[] array,
                                               int offset)
      • putIntArrayInByteArray

        public static int putIntArrayInByteArray(int[] src,
                                                 byte[] dest,
                                                 int offset)
      • putDoubleArrayInByteArray

        public static int putDoubleArrayInByteArray(double[] src,
                                                    byte[] dest,
                                                    int offset)
      • putStringInByteArray

        public static int putStringInByteArray(java.lang.String src,
                                               byte[] dest,
                                               int offset)
      • toByteArray

        public static byte[] toByteArray(int value)
      • toLong

        public static long toLong(byte[] bytearray,
                                  int offset)
      • toInt

        public static int toInt(byte[] b,
                                int offset)
      • toShort

        public static short toShort(byte[] b,
                                    int offset)
      • toBoolean

        public static boolean toBoolean(byte[] data,
                                        int offset)
      • toFloat

        public static float toFloat(byte[] data,
                                    int offset)
      • toDouble

        public static double toDouble(byte[] data,
                                      int offset)
      • toIntArray

        public static int[] toIntArray(byte[] data,
                                       int offset)
      • toString

        public static java.lang.String toString(byte[] data,
                                                int offset)
      • getFileNameWithoutExtension

        public static java.lang.String getFileNameWithoutExtension(java.lang.String name)
      • loadIntegersFromFile

        public static java.util.List<java.lang.Integer> loadIntegersFromFile(java.lang.String filename)
                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.