org.freecompany.redline
Class Util

java.lang.Object
  extended by org.freecompany.util.text.Util
      extended by org.freecompany.redline.Util

public class Util
extends org.freecompany.util.text.Util


Method Summary
static void check(byte expected, byte actual)
           
static void check(int expected, int actual)
           
static int difference(int start, int boundary)
           
static void empty(java.nio.channels.WritableByteChannel out, java.nio.ByteBuffer buffer)
           
static java.nio.ByteBuffer fill(java.nio.channels.ReadableByteChannel in, java.nio.ByteBuffer buffer)
           
static java.nio.ByteBuffer fill(java.nio.channels.ReadableByteChannel in, int size)
           
static java.lang.String normalizePath(java.lang.String path)
           
static void pad(java.nio.ByteBuffer buffer, int boundary)
           
static int round(int start, int boundary)
           
 
Methods inherited from class org.freecompany.util.text.Util
dump, dump, dump, dump, dump, dump, hex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalizePath

public static java.lang.String normalizePath(java.lang.String path)

fill

public static java.nio.ByteBuffer fill(java.nio.channels.ReadableByteChannel in,
                                       int size)
                                throws java.io.IOException
Throws:
java.io.IOException

fill

public static java.nio.ByteBuffer fill(java.nio.channels.ReadableByteChannel in,
                                       java.nio.ByteBuffer buffer)
                                throws java.io.IOException
Throws:
java.io.IOException

empty

public static void empty(java.nio.channels.WritableByteChannel out,
                         java.nio.ByteBuffer buffer)
                  throws java.io.IOException
Throws:
java.io.IOException

check

public static void check(int expected,
                         int actual)
                  throws java.io.IOException
Throws:
java.io.IOException

check

public static void check(byte expected,
                         byte actual)
                  throws java.io.IOException
Throws:
java.io.IOException

difference

public static int difference(int start,
                             int boundary)

round

public static int round(int start,
                        int boundary)

pad

public static void pad(java.nio.ByteBuffer buffer,
                       int boundary)