org.apache.maven.surefire.util.internal
Class ByteBuffer

java.lang.Object
  extended by org.apache.maven.surefire.util.internal.ByteBuffer

public class ByteBuffer
extends Object

Author:
Kristian Rosenvold

Constructor Summary
ByteBuffer(byte[] buf, int off, int len)
           
ByteBuffer(int length)
           
 
Method Summary
 void advance(int i)
           
 void append(byte chararcter)
           
 void append(byte[] src1, int off1, int len1)
           
 void append(ByteBuffer other)
           
 void append(char chararcter)
           
 void append(Integer integer)
           
 void comma()
           
static byte[] copy(byte[] src1, int off1, int len1)
           
 byte[] getData()
           
 int getlength()
           
static byte[] join(byte[] src1, int off1, int len1, byte[] src2, int off2, int len2)
           
 void print(PrintStream printStream)
           
static char[] toChar(byte[] b, int off, int len)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteBuffer

public ByteBuffer(int length)

ByteBuffer

public ByteBuffer(byte[] buf,
                  int off,
                  int len)
Method Detail

append

public void append(char chararcter)

append

public void append(byte chararcter)

comma

public void comma()

advance

public void advance(int i)

append

public void append(Integer integer)

getData

public byte[] getData()

getlength

public int getlength()

toString

public String toString()
Overrides:
toString in class Object

append

public void append(ByteBuffer other)

copy

public static byte[] copy(byte[] src1,
                          int off1,
                          int len1)

append

public void append(byte[] src1,
                   int off1,
                   int len1)

join

public static byte[] join(byte[] src1,
                          int off1,
                          int len1,
                          byte[] src2,
                          int off2,
                          int len2)

print

public void print(PrintStream printStream)

toChar

public static char[] toChar(byte[] b,
                            int off,
                            int len)


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.