TrueZIP Kernel 7.0-rc1

de.schlichtherle.truezip.util
Class ArrayHelper

java.lang.Object
  extended by de.schlichtherle.truezip.util.ArrayHelper

@ThreadSafe
public class ArrayHelper
extends Object

Provides static utility methods for arrays.

Author:
Christian Schlichtherle

Constructor Summary
private ArrayHelper()
           
 
Method Summary
static boolean equals(byte[] b1, int b1off, byte[] b2, int b2off, int max)
          Compares max bytes at the specified offsets of the given arrays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayHelper

private ArrayHelper()
Method Detail

equals

public static boolean equals(byte[] b1,
                             int b1off,
                             byte[] b2,
                             int b2off,
                             int max)
Compares max bytes at the specified offsets of the given arrays. If the remaining bytes at the given offset of any array is smaller than max bytes, it must match the number of remaining bytes at the given offset in the other array.


TrueZIP Kernel 7.0-rc1

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.