org.freecompany.redline

Class Util

public class Util extends Util

Method Summary
static voidcheck(int expected, int actual)
static voidcheck(byte expected, byte actual)
static intdifference(int start, int boundary)
static voidempty(WritableByteChannel out, ByteBuffer buffer)
static ByteBufferfill(ReadableByteChannel in, int size)
static ByteBufferfill(ReadableByteChannel in, ByteBuffer buffer)
static StringnormalizePath(String path)
static voidpad(ByteBuffer buffer, int boundary)
static intround(int start, int boundary)

Method Detail

check

public static void check(int expected, int actual)

check

public static void check(byte expected, byte actual)

difference

public static int difference(int start, int boundary)

empty

public static void empty(WritableByteChannel out, ByteBuffer buffer)

fill

public static ByteBuffer fill(ReadableByteChannel in, int size)

fill

public static ByteBuffer fill(ReadableByteChannel in, ByteBuffer buffer)

normalizePath

public static String normalizePath(String path)

pad

public static void pad(ByteBuffer buffer, int boundary)

round

public static int round(int start, int boundary)