org.infinispan.io
Class ByteBuffer
java.lang.Object
org.infinispan.io.ByteBuffer
public class ByteBuffer
- extends Object
A byte buffer that exposes the internal byte array with minimal copying
- Since:
- 4.0
- Author:
- (various)
Constructor Summary |
ByteBuffer(byte[] buf,
int offset,
int length)
|
ByteBuffer
public ByteBuffer(byte[] buf,
int offset,
int length)
getBuf
public byte[] getBuf()
getOffset
public int getOffset()
getLength
public int getLength()
copy
public ByteBuffer copy()
toString
public String toString()
- Overrides:
toString
in class Object
getStream
public InputStream getStream()
- Returns:
- an input stream for the bytes in the buffer
toJDKByteBuffer
public ByteBuffer toJDKByteBuffer()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.