@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()
ByteBuffer
getBuf
in interface ByteBuffer
public int getOffset()
ByteBuffer
ByteBuffer.getBuf()
owned by this buffer instance.getOffset
in interface ByteBuffer
public int getLength()
ByteBuffer
ByteBuffer.getBuf()
are owned
by this buffer instance.getLength
in interface ByteBuffer
public ByteBufferImpl copy()
ByteBuffer
ByteBuffer.getLength()
that contains all the bytes owned by this buffer.copy
in interface ByteBuffer
public InputStream getStream()
public ByteBuffer toJDKByteBuffer()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.