fos = new FileOutputStream(file, append);
} catch (FileNotFoundException ex) {
throw new IllegalArgumentException(ex.toString());
}
BufferedOutputStream bos = new BufferedOutputStream(fos);
BinaryOutputStream bs = new BinaryOutputStream(bos, bigEndian);
bs.writeDoubleArray(array, append);
}