Package org.apache.lucene.analysis.util
Class CharacterUtils.CharacterBuffer
- java.lang.Object
-
- org.apache.lucene.analysis.util.CharacterUtils.CharacterBuffer
-
- Enclosing class:
- CharacterUtils
public static final class CharacterUtils.CharacterBuffer extends java.lang.Object
A simple IO buffer to use withCharacterUtils.fill(CharacterBuffer, Reader)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getBuffer()
Returns the internal bufferint
getLength()
Return the length of the data in the internal buffer starting atgetOffset()
int
getOffset()
Returns the data offset in the internal buffer.void
reset()
Resets the CharacterBuffer.
-
-
-
Method Detail
-
getBuffer
public char[] getBuffer()
Returns the internal buffer- Returns:
- the buffer
-
getOffset
public int getOffset()
Returns the data offset in the internal buffer.- Returns:
- the offset
-
getLength
public int getLength()
Return the length of the data in the internal buffer starting atgetOffset()
- Returns:
- the length
-
reset
public void reset()
Resets the CharacterBuffer. All internals are reset to its default values.
-
-