forked from geodmms/xdgnjobs

?? ?
2008-03-14 f79f2e73285f9ea11410fb1db7a75b45d5d7785a
EOFM-14
2 files modified
15 ■■■■ changed files
ximple-spatialjob/src/main/java/com/ximple/eofms/util/BinConverter.java 13 ●●●● patch | view | raw | blame | history
ximple-spatialjob/src/main/java/com/ximple/eofms/util/Bits.java 2 ●●● patch | view | raw | blame | history
ximple-spatialjob/src/main/java/com/ximple/eofms/util/BinConverter.java
@@ -6,8 +6,6 @@
import java.nio.ByteOrder;
import java.nio.LongBuffer;
import org.testng.Assert;
/**
 * BinConverter
 * User: Ulysses
@@ -24,6 +22,7 @@
    /**
     *  gets bytes from an array into a long
     *
     *  @param buffer where to get the bytes
     *  @param nStartIndex index from where to read the data
     *  @return the 64bit integer
@@ -38,6 +37,7 @@
    /**
     *  converts a long o bytes which are put into a given array
     *
     *  @param lValue the 64bit integer to convert
     *  @param buffer the target buffer
     *  @param nStartIndex where to place the bytes in the buffer
@@ -56,6 +56,7 @@
    /**
     *  converts values from an integer array to a long
     *
     *  @param buffer where to get the bytes
     *  @param nStartIndex index from where to read the data
     *  @return the 64bit integer
@@ -67,6 +68,7 @@
    /**
     *  converts a long to integers which are put into a given array
     *
     *  @param lValue the 64bit integer to convert
     *  @param buffer the target buffer
     *  @param nStartIndex where to place the bytes in the buffer
@@ -79,6 +81,7 @@
    /**
     *  makes a long from two integers (treated unsigned)
     *
     *  @param nLo lower 32bits
     *  @param nHi higher 32bits
     *  @return the built long
@@ -90,6 +93,7 @@
    /**
     *  gets the lower 32 bits of a long
     *
     *  @param lVal the long integer
     *  @return lower 32 bits
     */
@@ -100,6 +104,7 @@
    /**
     *  gets the higher 32 bits of a long
     *
     *  @param lVal the long integer
     *  @return higher 32 bits
     */
@@ -110,6 +115,7 @@
    /**
     *  converts a byte array to a binhex string
     *
     *  @param data the byte array
     *  @return the binhex string
     */
@@ -121,6 +127,7 @@
    /**
     *  converts a byte array to a binhex string
     *
     *  @param data the byte array
     *  @param nStartPos start index where to get the bytes
     *  @param nNumOfBytes number of bytes to convert
@@ -145,6 +152,7 @@
    /**
     *  converts a binhex string back into a byte array (invalid codes will be skipped)
     *
     *  @param sBinHex binhex string
     *  @param data the target array
     *  @param nSrcPos from which character in the string the conversion should begin,
@@ -209,6 +217,7 @@
    /**
     *  converts a byte array into an UNICODE string
     *
     *  @param data the byte array
     *  @param nStartPos where to begin the conversion
     *  @param nNumOfBytes number of bytes to handle
ximple-spatialjob/src/main/java/com/ximple/eofms/util/Bits.java
@@ -6,7 +6,6 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
import sun.misc.Unsafe;
import sun.misc.VM;
/**
@@ -253,6 +252,7 @@
        return byteOrder;
    }
    */
    static boolean unaligned()
    {
        if (unalignedKnown)