org.jgroups.util

Class Buffer

public class Buffer extends Object

Buffer with an offset and length. Will be replaced with NIO equivalent once JDK 1.4 becomes baseline

Version: $Id: Buffer.java,v 1.4 2005/09/06 09:53:53 belaban Exp $

Author: Bela Ban

Constructor Summary
Buffer(byte[] buf, int offset, int length)
Method Summary
Buffercopy()
byte[]getBuf()
intgetLength()
intgetOffset()
voidsetBuf(byte[] buf)
voidsetLength(int length)
voidsetOffset(int offset)
StringtoString()

Constructor Detail

Buffer

public Buffer(byte[] buf, int offset, int length)

Method Detail

copy

public Buffer copy()

getBuf

public byte[] getBuf()

getLength

public int getLength()

getOffset

public int getOffset()

setBuf

public void setBuf(byte[] buf)

setLength

public void setLength(int length)

setOffset

public void setOffset(int offset)

toString

public String toString()
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.