/** * Clone this SAXText object. * @return A cloned copy of this SAXText object. */ protected Object clone() { SAXText clone = new SAXText(); clone.characters = new char[length]; System.arraycopy(characters, offset, clone.characters, 0, length); clone.offset = 0; clone.length = length; clone.type = type; return clone; } }
/** * Clone this SAXText object. * @return A cloned copy of this SAXText object. */ protected Object clone() { SAXText clone = new SAXText(); clone.characters = new char[length]; System.arraycopy(characters, offset, clone.characters, 0, length); clone.offset = 0; clone.length = length; clone.type = type; return clone; } }
/** * Clone this SAXText object. * @return A cloned copy of this SAXText object. */ protected Object clone() { SAXText clone = new SAXText(); clone.characters = new char[length]; System.arraycopy(characters, offset, clone.characters, 0, length); clone.offset = 0; clone.length = length; clone.type = type; return clone; } }
/** * Clone this SAXText object. * @return A cloned copy of this SAXText object. */ protected Object clone() { SAXText clone = new SAXText(); clone.characters = new char[length]; System.arraycopy(characters, offset, clone.characters, 0, length); clone.offset = 0; clone.length = length; clone.type = type; return clone; } }
/** * Add a text object to this instance. * <p/> * Utility method, userd mainly for testing. * * @param text The text to be added. * @param type The text type. * @see #accumulateText() * @see TextConsumer */ public void addText (String text, TextType type) { if(this.text == null) { accumulateText(); } this.text.add(new SAXText(text, type)); }
/** * Add a text object to this instance. * <p/> * Utility method, userd mainly for testing. * * @param text The text to be added. * @param type The text type. * @see #accumulateText() * @see TextConsumer */ public void addText (String text, TextType type) { if(this.text == null) { accumulateText(); } this.text.add(new SAXText(text, type)); }
/** * Add a text object to this instance. * * Utility method, userd mainly for testing. * * @param text The text to be added. * @param type The text type. * @see #accumulateText() * @see TextConsumer */ public void addText (String text, TextType type) { if(this.text == null) { accumulateText(); } this.text.add(new SAXText(text, type)); }
/** * Add a text object to this instance. * <p/> * Utility method, userd mainly for testing. * * @param text The text to be added. * @param type The text type. * @see #accumulateText() * @see TextConsumer */ public void addText (String text, TextType type) { if(this.text == null) { accumulateText(); } this.text.add(new SAXText(text, type)); }