@Deprecated public class ByteBufferImpl extends Object implements ByteBuffer
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteBufferImpl.Externalizer
Deprecated.
|
| Constructor and Description |
|---|
ByteBufferImpl(byte[] buf,
int offset,
int length)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBufferImpl |
copy()
Deprecated.
Returns a new byte[] instance of size
ByteBuffer.getLength() that contains all the bytes owned by this buffer. |
boolean |
equals(Object o)
Deprecated.
|
byte[] |
getBuf()
Deprecated.
Returns the underlying buffer.
|
int |
getLength()
Deprecated.
Length bytes, starting from offset, within the underlying byte[] (as returned by
ByteBuffer.getBuf() are owned
by this buffer instance. |
int |
getOffset()
Deprecated.
Returns the offset within the underlying byte[] (as returned by
ByteBuffer.getBuf() owned by this buffer instance. |
InputStream |
getStream()
Deprecated.
|
int |
hashCode()
Deprecated.
|
ByteBuffer |
toJDKByteBuffer()
Deprecated.
|
String |
toString()
Deprecated.
|
public ByteBufferImpl(byte[] buf,
int offset,
int length)
public byte[] getBuf()
ByteBuffergetBuf in interface ByteBufferpublic int getOffset()
ByteBufferByteBuffer.getBuf() owned by this buffer instance.getOffset in interface ByteBufferpublic int getLength()
ByteBufferByteBuffer.getBuf() are owned
by this buffer instance.getLength in interface ByteBufferpublic ByteBufferImpl copy()
ByteBufferByteBuffer.getLength() that contains all the bytes owned by this buffer.copy in interface ByteBufferpublic InputStream getStream()
public ByteBuffer toJDKByteBuffer()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.