public void setCharAt(int index, char ch) {
    buf[index] = ch;    
  }
A StringBuilder that allows one to access the array.
linguistics/src/main/java/com/yahoo/language/simple/kstem/OpenStringBuilder.java