org.neociclo.odetteftp.util
Class BufferUtil
java.lang.Object
org.neociclo.odetteftp.util.BufferUtil
public class BufferUtil
- extends Object
- Version:
- $Rev: 594 $ $Date: 2010-08-13 13:09:42 -0300 (Fri, 13 Aug 2010) $
- Author:
- Rafael Marins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferUtil
public BufferUtil()
bufferSkip
public static void bufferSkip(ByteBuffer buffer,
int count)
toHexString
public static String toHexString(byte b)
toHexString
public static String toHexString(byte[] barray)
toHexString
public static String toHexString(byte[] barray,
int max)
seekWithinBuffer
public static int seekWithinBuffer(byte[] pattern,
ByteBuffer buffer,
int limitCount)
seekRepeatSequence
public static int seekRepeatSequence(ByteBuffer buffer,
int limitCount,
int minRepeat)
- Parameters:
buffer
- limitCount
- minRepeat
-
- Returns:
- The start position of sequence repetition in the buffer. Returns
-1
if no repeat sequence is found.
getRepeatSequenceCount
public static int getRepeatSequenceCount(ByteBuffer buffer,
int limitCount)
ACCORD