ByteArrayOutputStream baos = new ByteArrayOutputStream();
BNetOutputStream headerStream = new BNetOutputStream(baos);
) {
Out.debug(IconsDotBniReader.class, "Writing " + f.getName());
headerStream.writeWord(1); // BNI version
headerStream.writeWord(0); // Alignment Padding (unused)
headerStream.writeDWord(icons.length); // numIcons
headerStream.writeDWord(-1); // dataOffset
for(BNetIcon icon : icons) {