private final String extractBufferContent() { final char[] bufferContentArray = myBuffer.toString().toCharArray(); myBuffer.delete(0, myBuffer.length()); if (bufferContentArray.length == 0) { return null; } return new String(bufferContentArray); }
@Override public final void characterDataHandler(char[] data, int start, int length) { myBuffer.append(data, start, length); }