Como obter dados de matriz de bytes no DoubleBuffer

Eu gostaria de extrair um conjunto de coordenadas de uma matriz de bytes em um DoubleBuffer.

Abaixo está um exemplo de como eu extraio um conjunto de coordenadas da matriz de bytes principal em outra matriz de bytes.

byte intPoints[] = new byte[4];
byte geomCoords[];
...
is = new ByteArrayInputStream(stmt.column_bytes(0)); //reads the polygon from db
...
is.read(intPoints); //intPoints now holds the number of points in the polygon
//After this is read the actual coordinate list is next

//Set the size of geomCoords to hold all coordinates,
//There are 2 coordinates per point and each coordinate is a double value(8 bytes)
geomCoords = new byte[ByteBuffer.wrap(intPoints).order(endian).getInt() * 2 * 8];

is.read(geomCoords); //geomCoords now holds all the coordinates for the polygon

Minhas perguntas são:
Como posso obter array de bytes geomCoords em um DoubleBuffer?
Ou
Posso obter esses dados em um DoubleBuffer sem a criação de geomCoords? Velocidade e eficiência são fundamentais, portanto, qualquer atalho ou otimização é muito bem-vindo!

questionAnswers(1)

yourAnswerToTheQuestion