public void write(String text,int offset,int length){
  buffer.append(text.substring(offset,offset + length));
}

public void write ( String text , int offset , int length ) { buffer . append ( text . substring ( offset , offset + length ) ) ; }
write a portion of a string .
