Package org.jgroups.util
Class Buffer
- java.lang.Object
-
- org.jgroups.util.Buffer
-
public class Buffer extends java.lang.Object
Buffer with an offset and length. Will be replaced with NIO equivalent once JDK 1.4 becomes baseline. This class is immutable- Version:
- $Id: Buffer.java,v 1.5 2007/01/04 12:11:09 belaban Exp $
- Author:
- Bela Ban
-
-
Constructor Summary
Constructors Constructor Description Buffer(byte[] buf, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffer
copy()
byte[]
getBuf()
int
getLength()
int
getOffset()
java.lang.String
toString()
-
-
-
Method Detail
-
getBuf
public byte[] getBuf()
-
getOffset
public int getOffset()
-
getLength
public int getLength()
-
copy
public Buffer copy()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-