private static void writeInfoToFile ( File file , DiscoverInfo info ) throws IOException { try ( DataOutputStream dos = new DataOutputStream ( new FileOutputStream ( file ) ) ) { dos . writeUTF ( info . toXML ( ) . toString ( ) ) ; } }
Writes the DiscoverInfo stanza to an file