Interface Dictionary.VisitorContext

All Known Implementing Classes:
VisitorContextImpl
Enclosing interface:
Dictionary

public static interface Dictionary.VisitorContext
The information about each node.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of bytes.
    int
    Get the position where the key was originally added.
    Get the original string.
    void
    Write the bytes for the string to the given output stream.
  • Method Details

    • getOriginalPosition

      int getOriginalPosition()
      Get the position where the key was originally added.
      Returns:
      the number returned by add.
    • writeBytes

      void writeBytes(OutputStream out) throws IOException
      Write the bytes for the string to the given output stream.
      Parameters:
      out - the stream to write to.
      Throws:
      IOException
    • getText

      Text getText()
      Get the original string.
      Returns:
      the string
    • getLength

      int getLength()
      Get the number of bytes.
      Returns:
      the string's length in bytes