1 37 38 package org.htmlcleaner; 39 40 import java.io.IOException ; 41 42 import org.htmlcleaner.BaseToken; 43 44 50 public class CommentToken implements BaseToken { 51 52 private String content; 53 54 public CommentToken(String content) { 55 this.content = "<!--" + content + "-->"; 56 } 57 58 public String getContent() { 59 return content; 60 } 61 62 public String toString() { 63 return content; 64 } 65 66 public void serialize(XmlSerializer xmlSerializer) throws IOException { 67 xmlSerializer.getWriter().write( getContent().toString() ); 68 } 69 70 } | Popular Tags |