code: public static void write(OutputStream os, byte version) throws IOException {
      os.write(FSA_MAGIC >> 24);
      os.write(FSA_MAGIC >> 16);
      os.write(FSA_MAGIC >>  8);
      os.write(FSA_MAGIC);
      os.write(version);
    }
docs: Writes FSA magic bytes and version information.
  
  @param os The stream to write to.
  @param version Automaton version.
  @throws IOException Rethrown if writing fails.