CharTermAttribute instead.@Deprecated public interface TermAttribute extends Attribute
| Modifier and Type | Method and Description | 
|---|---|
| char[] | resizeTermBuffer(int newSize)Deprecated.  Grows the termBuffer to at least size newSize, preserving the
  existing content. | 
| void | setTermBuffer(char[] buffer,
             int offset,
             int length)Deprecated.  Copies the contents of buffer, starting at offset for
  length characters, into the termBuffer array. | 
| void | setTermBuffer(String buffer)Deprecated.  Copies the contents of buffer into the termBuffer array. | 
| void | setTermBuffer(String buffer,
             int offset,
             int length)Deprecated.  Copies the contents of buffer, starting at offset and continuing
  for length characters, into the termBuffer array. | 
| void | setTermLength(int length)Deprecated.  Set number of valid characters (length of the term) in
  the termBuffer array. | 
| String | term()Deprecated.  Returns the Token's term text. | 
| char[] | termBuffer()Deprecated.  Returns the internal termBuffer character array which
  you can then directly alter. | 
| int | termLength()Deprecated.  Return number of valid characters (length of the term)
  in the termBuffer array. | 
String term()
termBuffer() and termLength() directly instead.  If you really need a
 String, use this method, which is nothing more than
 a convenience call to new String(token.termBuffer(), 0, token.termLength())void setTermBuffer(char[] buffer,
                 int offset,
                 int length)
buffer - the buffer to copyoffset - the index in the buffer of the first character to copylength - the number of characters to copyvoid setTermBuffer(String buffer)
buffer - the buffer to copyvoid setTermBuffer(String buffer, int offset, int length)
buffer - the buffer to copyoffset - the index in the buffer of the first character to copylength - the number of characters to copychar[] termBuffer()
resizeTermBuffer(int) to increase it.  After
  altering the buffer be sure to call setTermLength(int) to record the number of valid
  characters that were placed into the termBuffer.char[] resizeTermBuffer(int newSize)
setTermBuffer(char[], int, int),
  setTermBuffer(String), or
  setTermBuffer(String, int, int)
  to optimally combine the resize with the setting of the termBuffer.newSize - minimum size of the new termBufferint termLength()
void setTermLength(int length)
resizeTermBuffer(int) first.length - the truncated length