/* (non-Javadoc) * @see org.eclipse.ohf.utilities.xml.IXMLWriter#writeBytes(byte[]) */ @Override public void writeBytes(byte[] bytes) throws IOException { checkInElement(); if (pendingClose) { write(">"); writePendingComment(); pendingClose = false; } flush(); stream.write(bytes); }
/* (non-Javadoc) * @see org.eclipse.ohf.utilities.xml.IXMLWriter#text(java.lang.String, boolean) * * Replace escapeText() */ @Override public void text(String content, boolean dontEscape) throws IOException { checkInElement(); if (content != null) { if (pendingClose) { write(">"); writePendingComment(); pendingClose = false; } if (dontEscape) write(content); else write(XMLUtil.escapeXML(content, charset, false)); } }