Package org.jgroups.util
Class Buffer
- java.lang.Object
-
- org.jgroups.util.Buffer
-
public class Buffer extends java.lang.ObjectBuffer with an offset and length. Will be replaced with NIO equivalent once JDK 1.4 becomes baseline. This class is immutable. Note that the underlying byte[] buffer must not be changed as long as this Buffer instance is in use !- Author:
- Bela Ban
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Buffercopy()byte[]getBuf()intgetLength()intgetOffset()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-