code: public void write(OWLOntologyDocument document, OutputStream dos) throws IOException {
          write(document, dos, new BinaryOWLMetadata());
      }
docs: Writes out an {@link org.semanticweb.binaryowl.doc.OWLOntologyDocument} in binary OWL.
  @param document The document to be written out. Not {@code null}.
  @param dos The output stream to write the document to.  Not {@code null}.
  @throws IOException If there was a problem writing to the stream.
  @throws NullPointerException if any parameters are {@code null}.