Auf Thema antworten

Du wirst wohl auch so eine Schleife benötigen, aber mit einem ByteBuffer (Java 2 Platform SE 5.0) wird das wohl am einfachsten funktionieren.


Edit: Beispiel:

[code=Java]ByteBuffer bb = ByteBuffer.allocate(shortArray.length * 2);

for (short s : shortArray) {

    bb.putShort(s);

}

byte[] output = bb.array();[/code]



Oben