public class VisitorContextImpl extends Object implements Dictionary.VisitorContext
Dictionary.VisitorContext used to traversing
all nodes in a dictionary.| Constructor and Description |
|---|
VisitorContextImpl(DynamicByteArray byteArray,
DynamicIntArray keyOffsets) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Get the number of bytes.
|
int |
getOriginalPosition()
Get the position where the key was originally added.
|
Text |
getText()
Get the original string.
|
void |
setPosition(int position) |
void |
writeBytes(OutputStream out)
Write the bytes for the string to the given output stream.
|
public VisitorContextImpl(DynamicByteArray byteArray, DynamicIntArray keyOffsets)
public int getOriginalPosition()
Dictionary.VisitorContextgetOriginalPosition in interface Dictionary.VisitorContextpublic Text getText()
Dictionary.VisitorContextgetText in interface Dictionary.VisitorContextpublic void writeBytes(OutputStream out) throws IOException
Dictionary.VisitorContextwriteBytes in interface Dictionary.VisitorContextout - the stream to write to.IOExceptionpublic int getLength()
Dictionary.VisitorContextgetLength in interface Dictionary.VisitorContextpublic void setPosition(int position)
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.