Beispiel #1
0
 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);
 }
Beispiel #2
0
 @Override
 public final void characterDataHandler(char[] data, int start, int length) {
   myBuffer.append(data, start, length);
 }