Exemplo n.º 1
0
 /**
  * Method for appending specified comment within this output container.
  *
  * <p>Note: for buffered (and not-yet-released) containers, will hold contents buffered until
  * release of container.
  */
 public void addComment(String text) throws XMLStreamException {
   if (_canOutputNewChild()) {
     _context.writeComment(text);
   } else {
     _linkNewChild(_context.createComment(text));
   }
 }