186187188189190191192193
try { lexical.startCDATA(); text(text); lexical.endCDATA(); } catch (SAXException e) { throw new TxwException(e); } }
197198199200201202203204
if(lexical==null) throw new UnsupportedOperationException("LexicalHandler is needed to write comments"); else lexical.comment(comment.toString().toCharArray(), 0, comment.length() ); } catch (SAXException e) { throw new TxwException(e); } }
205206207208209210211212
public void endDocument() { try { writer.endDocument(); } catch (SAXException e) { throw new TxwException(e); } }
6869707172737475
public void startDocument() { try { out.writeStartDocument(); } catch (XMLStreamException e) { throw new TxwException(e); } }
7677787980818283
public void beginStartTag(String uri, String localName, String prefix) { try { out.writeStartElement(prefix, localName, uri); } catch (XMLStreamException e) { throw new TxwException(e); } }
8485868788899091
public void writeAttribute(String uri, String localName, String prefix, StringBuilder value) { try { out.writeAttribute(prefix, uri, localName, value.toString()); } catch (XMLStreamException e) { throw new TxwException(e); } }
99100101102103104105106
} // this method handles "", null, and "xmlns" prefixes properly out.writeNamespace(prefix, uri); } catch (XMLStreamException e) { throw new TxwException(e); } }
111112113114115116117118
public void endTag() { try { out.writeEndElement(); } catch (XMLStreamException e) { throw new TxwException(e); } }
119120121122123124125126
public void text(StringBuilder text) { try { out.writeCharacters(text.toString()); } catch (XMLStreamException e) { throw new TxwException(e); } }
127128129130131132133134
public void cdata(StringBuilder text) { try { out.writeCData(text.toString()); } catch (XMLStreamException e) { throw new TxwException(e); } }