@Override public void append(String s,TextAttributeSet attrs){
  int beginIndex=stringBuilder.length();
  int endIndex=beginIndex + s.length();
  stringBuilder.append(s);
  attributeList.add(new AttributeDefinition(attrs,beginIndex,endIndex));
}

@ Override public void append ( String s , TextAttributeSet attrs ) { int beginIndex = stringBuilder . length ( ) ; int endIndex = beginIndex + s . length ( ) ; stringBuilder . append ( s ) ; attributeList . add ( new AttributeDefinition ( attrs , beginIndex , endIndex ) ) ; }
append a string with attributes .
