public void write(char buf[],int off,int len){
  if (text != null) {
    text.append(new String(buf,off,len));
    if ((col+=len) > wrap)     println();
  }
 else   super.write(buf,off,len);
}

public void write ( char buf [ ] , int off , int len ) { if ( text != null ) { text . append ( new String ( buf , off , len ) ) ; if ( ( col += len ) > wrap ) println ( ) ; } else super . write ( buf , off , len ) ; }
write a portion of an array of characters .
