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