Package com.luciad.containers
Class ByteBuffer
java.lang.Object
com.luciad.containers.ByteBuffer
- All Implemented Interfaces:
AutoCloseable
Represents an implicitly shared buffer of bytes, ie.
ByteBuffer
copies (i.e. the copy constructor or assignment operator) result in shallow copies.
- Note
- Primitive type values are translated from sequences of bytes according to the native byte order of the underlying platform (i.e. LITTLE_ENDIAN or BIG_ENDIAN).
- Note
- If you create a ByteBuffer using a byte array allocated or manipulated through a java.nio.ByteBuffer, please pay attention to the byte order, since the initial order of a java.nio.ByteBuffer is always BIG_ENDIAN. If you want to make use of a java.nio.ByteBuffer, please change its byte order to the native byte order of the underlying platform.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getData
public byte[] getData()Returns the underlying byte array.- Returns:
- the underlying byte array.
-