int returnLength = 0;
if (parser != null) {
try {
returnLength = parser.getTextCharacters(i, chars, i1, i2);
} catch (XMLStreamException e) {
throw new OMStreamingException(e);
}
} else {
if (hasText()) {
OMText textNode = (OMText) lastNode;
String str = textNode.getText();