134135136137138139140141
getQName(prefix, localName), attrs); attrs.clear(); } catch (SAXException e) { throw new TxwException(e); } }
145146147148149150151152
writer.endElement(elementBindings.pop(), // uri elementBindings.pop(), // localName elementBindings.pop() // qname ); } catch (SAXException e) { throw new TxwException(e); } }
153154155156157158159160
public void text(StringBuilder text) { try { writer.characters(text.toString().toCharArray(), 0, text.length()); } catch (SAXException e) { throw new TxwException(e); } }
166167168169170171172173
try { lexical.startCDATA(); text(text); lexical.endCDATA(); } catch (SAXException e) { throw new TxwException(e); } }
177178179180181182183184
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); } }
185186187188189190191192
public void endDocument() { try { writer.endDocument(); } catch (SAXException e) { throw new TxwException(e); } }
4849505152535455
public void startDocument() { try { out.writeStartDocument(); } catch (XMLStreamException e) { throw new TxwException(e); } }
5657585960616263
public void beginStartTag(String uri, String localName, String prefix) { try { out.writeStartElement(prefix, localName, uri); } catch (XMLStreamException e) { throw new TxwException(e); } }
6465666768697071
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); } }
7980818283848586
} // this method handles "", null, and "xmlns" prefixes properly out.writeNamespace(prefix, uri); } catch (XMLStreamException e) { throw new TxwException(e); } }