diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/xml/XMLXMLHandler.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java index 269f1dd45..adec8a385 100644 --- a/src/java/org/apache/fop/render/xml/XMLXMLHandler.java +++ b/src/java/org/apache/fop/render/xml/XMLXMLHandler.java @@ -127,42 +127,6 @@ public class XMLXMLHandler implements XMLHandler { } } - /** - * Returns the given content value transformed to replace invalid - * characters with entities. - * @param s content value - * @return encoded value - */ - private static String contentToString(String s) { - StringBuffer result = new StringBuffer(); - - for (int i = 0; i < s.length(); i++) { - char c = s.charAt(i); - - switch (c) { - case '<': - result.append("<"); - break; - case '>': - result.append(">"); - break; - case '&': - result.append("&"); - break; - case '"': - result.append("""); - break; - case '\'': - result.append("'"); - break; - default: - result.append(c); - } - } - - return result.toString(); - } - /** @see org.apache.fop.render.XMLHandler#getMimeType() */ public String getMimeType() { return XMLRenderer.XML_MIME_TYPE; |