/**
  * Print the classifications for the document to the given Writer. This method now checks the
  * <code>outputFormat</code> property, and can print in slashTags, inlineXML, or xml (stand-Off
  * XML). For both the XML output formats, it preserves spacing, while for the slashTags format, it
  * prints tokenized (since preserveSpacing output is somewhat dysfunctional with the slashTags
  * format).
  *
  * @param list List of tokens with classifier answers
  * @param out Where to print the output to
  */
 public void printAnswers(List<IN> list, PrintWriter out) {
   String style = null;
   if (flags != null) {
     style = flags.outputFormat;
   }
   if (style == null || "".equals(style)) {
     style = "slashTags";
   }
   OutputStyle outputStyle = OutputStyle.fromShortName(style);
   printAnswers(list, out, outputStyle, !"slashTags".equals(style));
 }
 static {
   for (OutputStyle style : OutputStyle.values()) shortNames.put(style.shortName, style);
 }