question: public static void writeExtensionMedia ( OutputStream theOs , String theStr ) throws IOException { theOs . write ( theStr . getBytes ( StandardCharsets . UTF_8 ) ) ; theOs . write ( ( byte ) 0x00 ) ; }
target:  Writes an "extension media" in pdu format to the given output stream. It currently only handles ASCII chars, but should be extended to work with other charsets.