org.apache.uima.internal.util.text
Interface INormalizationResult


public interface INormalizationResult


Method Summary
 boolean ensureLength(int len)
           
 char[] getBuffer()
          Returns the char[] holding the normalized text.
 int getStartIndex()
           
 int getStopIndex()
           
 void setBuffer(char[] cs)
          Package friendy.
 void setStartIndex(int i)
          Package friendy.
 void setStopIndex(int i)
          Package friendy.
 

Method Detail

getBuffer

char[] getBuffer()
Returns the char[] holding the normalized text.

Note: do not keep a handle to the char[] between calls to normalize(), since the char[] buffer may be reallocated.

Returns:
The char[] containing the normalized text processed by AbstractCustomNormalizer#normalize(char[],int,int).

getStartIndex

int getStartIndex()
Returns:
The index within the char[] (getBuffer()), where the first normalized character has been written.

getStopIndex

int getStopIndex()
Returns:
The index+1 of the last normalized character in the char[] (getBuffer()). This index may be used as start index for retrieving the untouched content after the normalized text (if more is following).

setBuffer

void setBuffer(char[] cs)
Package friendy. Only meant for AbstractCustomNormalizer.


setStartIndex

void setStartIndex(int i)
Package friendy. Only meant for AbstractCustomNormalizer.


setStopIndex

void setStopIndex(int i)
Package friendy. Only meant for AbstractCustomNormalizer.


ensureLength

boolean ensureLength(int len)


Copyright © 2013. All Rights Reserved.