code: private void addNewText(final EAdd paramAdd, final Characters paramTextEvent) throws TTException {
          assert paramTextEvent != null;
          final String text = paramTextEvent.getData().trim();
          final ByteBuffer textByteBuffer = ByteBuffer.wrap(TypedValue.getBytes(text));
          if (textByteBuffer.array().length > 0) {
              if (paramAdd == EAdd.ASFIRSTCHILD) {
                  mWtx.insertTextAsFirstChild(new String(textByteBuffer.array()));
              } else {
                  mWtx.insertTextAsRightSibling(new String(textByteBuffer.array()));
              }
          }
      }
docs: Add a new text node.
  
  @param paramAdd
  determines how to add the node
  @param paramTextEvent
  the current {@link Character} event from the StAX parser.
  @throws TTException
  if adding text node fails