Code example for ByteBuffer

Methods: hasArray, hasRemaining, isDirect, position