1 28 29 package com.caucho.xml; 30 31 import org.w3c.dom.Node ; 32 33 import java.io.IOException ; 34 35 class QUnescapedText extends QText { 36 QUnescapedText(String data) 37 { 38 super(data); 39 } 40 41 Node importNode(QDocument owner, boolean deep) 42 { 43 QUnescapedText text = new QUnescapedText(_data); 44 text._filename = _filename; 45 text._line = _line; 46 text._owner = owner; 47 return text; 48 } 49 50 public void print(XmlPrinter os) throws IOException 51 { 52 boolean oldEscaping = os.getEscaping(); 53 os.setEscaping(false); 54 os.text(getData()); 55 os.setEscaping(oldEscaping); 56 } 57 58 private Object writeReplace() 59 { 60 return new SerializedXml(this); 61 } 62 } 63 | Popular Tags |