示例#1
0
 /**
  * Method for appending specified text as CDATA within this output container.
  *
  * <p>Note: for buffered (and not-yet-released) containers, will hold contents buffered until
  * release of container.
  */
 public void addCData(char[] buf, int offset, int len) throws XMLStreamException {
   if (_canOutputNewChild()) {
     _context.writeCData(buf, offset, len);
   } else {
     _linkNewChild(_context.createCData(buf, offset, len));
   }
 }
示例#2
0
 /**
  * Method for appending specified text as CDATA within this output container.
  *
  * <p>Note: for buffered (and not-yet-released) containers, will hold contents buffered until
  * release of container.
  */
 public void addCData(String text) throws XMLStreamException {
   if (_canOutputNewChild()) {
     _context.writeCData(text);
   } else {
     _linkNewChild(_context.createCData(text));
   }
 }