private static ByteBuffer readToByteBuffer(InputStream input) throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream(2048);
        byte[] tmp = new byte[2048];
        while(true) {
            int r = input.read(tmp);
            if(r == -1)
                break;
            out.write(tmp, 0, r);
        }
        return ByteBuffer.wrap(out.toByteArray()).order(ByteOrder.LITTLE_ENDIAN);
    }
Tests whether all bytes in the specified array are zero.

@param array the array to test (not null, unaffected)
@return true if all zeroes, otherwise false
jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/file/FbxReader.java