export swf to XML

This commit is contained in:
honfika@gmail.com
2015-01-17 14:24:17 +01:00
parent 07eaafdc55
commit 7d09f30ae9
10 changed files with 232 additions and 8 deletions

View File

@@ -869,6 +869,18 @@ public class Helper {
return text;
}
public static String escapeXML(String text) {
StringBuilder sb = new StringBuilder(text.length());
for (int i = 0; i < text.length(); i++) {
char ch = text.charAt(i);
if (i > 31 || i == 9 || i == 10 || i == 13) {
sb.append(ch);
}
}
return escapeHTML(sb.toString());
}
public static Shape imageToShape(BufferedImage image) {
Area area = new Area();
Rectangle rectangle = new Rectangle();