text: public virtual byte[] Build(){ByteArrayOutputStream os = new ByteArrayOutputStream();OutputStreamWriter w = new OutputStreamWriter(os, Constants.CHARSET);try{w.Write("object ");GetObjectId().CopyTo(w);w.Write('\n');w.Write("type ");w.Write(Constants.TypeString(GetObjectType()));w.Write("\n");w.Write("tag ");w.Write(GetTag());w.Write("\n");if (GetTagger() != null){w.Write("tagger ");w.Write(GetTagger().ToExternalString());w.Write('\n');}w.Write('\n');if (GetMessage() != null){w.Write(GetMessage());}w.Close();}catch (IOException err){throw new RuntimeException(err);}return os.ToByteArray();}