public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException { if (state == STATE_START_DOCUMENT || state == STATE_END_DOCUMENT) { throw new IllegalStateException(); } else { return getTextCharacters(sourceStart, target, targetStart, length); } }