public class Label extends ExtensionObj {
- private String _label = "";
+ private StringBuffer textBuffer;
public static class Maker extends FObj.Maker {
public FObj make(FObj parent, PropertyList propertyList) {
super(parent, propertyList);
}
- protected void addCharacters(char data[], int start, int end) {
- _label += new String(data, start, end - start);
+ protected void addCharacters(char data[], int start, int length) {
+ if (textBuffer==null) {
+ textBuffer = new StringBuffer();
+ }
+ textBuffer.append(data,start,length);
}
public String toString() {
- return _label;
+ return textBuffer.toString();
}
}
protected void addCharacters(char data[], int start, int length) {
- String str = new String(data, start, length - start);
+ String str = new String(data, start, length);
org.w3c.dom.Text text = doc.createTextNode(str);
element.appendChild(text);
}