org.apache.jute
Class Utils

java.lang.Object
  extended by org.apache.jute.Utils

public class Utils
extends Object

Various utility functions for Hadoop record I/O runtime.


Method Summary
static boolean bufEquals(byte[] onearray, byte[] twoarray)
          equals function that actually compares two buffers.
static int compareBytes(byte[] b1, int off1, int len1, byte[] b2, int off2, int len2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bufEquals

public static boolean bufEquals(byte[] onearray,
                                byte[] twoarray)
equals function that actually compares two buffers.

Parameters:
onearray - First buffer
twoarray - Second buffer
Returns:
true if one and two contain exactly the same content, else false.

compareBytes

public static int compareBytes(byte[] b1,
                               int off1,
                               int len1,
                               byte[] b2,
                               int off2,
                               int len2)