Use ByteBuffer src = srcs[i] and act on it. No way to access via array all the time. Maybe the JVM is smart enough to optimize this but you never know ;)