예제 #1
0
파일: XMLWriter.java 프로젝트: dom4j/dom4j
  /**
   * Writes the given {@link Comment}.
   *
   * @param comment <code>Comment</code> to output.
   * @throws IOException DOCUMENT ME!
   */
  public void write(Comment comment) throws IOException {
    writeComment(comment.getText());

    if (autoFlush) {
      flush();
    }
  }
예제 #2
0
파일: SAXWriter.java 프로젝트: enenuki/phd
 /* 191:    */
 /* 192:    */ public void write(Comment comment) /* 193:    */ throws SAXException /* 194:    */ {
   /* 195:298 */ if (this.lexicalHandler != null)
   /* 196:    */ {
     /* 197:299 */ String text = comment.getText();
     /* 198:300 */ char[] chars = text.toCharArray();
     /* 199:301 */ this.lexicalHandler.comment(chars, 0, chars.length);
     /* 200:    */ }
   /* 201:    */ }