public void write(char cbuf[],int off,int len) throws IOException {
  if (_byteBuffer == null)   throw new IOException("Writer closed");
  final int off_plus_len=off + len;
  for (int i=off; i < off_plus_len; ) {
    char c=cbuf[i++];
    if (c < 0x80) {
      _byteBuffer.put((byte)c);
    }
 else {
      write(c);
    }
  }
}

public void write ( char cbuf [ ] , int off , int len ) throws IOException { if ( _byteBuffer == null ) throw new IOException ( "Writer closed" ) ; final int off_plus_len = off + len ; for ( int i = off ; i < off_plus_len ; ) { char c = cbuf [ i ++ ] ; if ( c < 0x80 ) { _byteBuffer . put ( ( byte ) c ) ; } else { write ( c ) ; } } }
writes a portion of an array of characters .
