Interface Text

All Known Implementing Classes:
Parser.ReusableToken

public interface Text
Text returned by HTMLTagTokenizer.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the complete contents of the text block, preserving original formatting.
    int
    The length of the text
    int
    The position of the text
    void
    writeTo(SitemeshBufferFragment.Builder buffer, int position)
    Write out the complete contents of the text block, preserving original formatting.
  • Method Details

    • getContents

      String getContents()
      Get the complete contents of the text block, preserving original formatting. This has a slight overhead in that it needs to construct a String. For improved performance, use writeTo() instead.
    • writeTo

      void writeTo(SitemeshBufferFragment.Builder buffer, int position)
      Write out the complete contents of the text block, preserving original formatting.
    • getPosition

      int getPosition()
      The position of the text
    • getLength

      int getLength()
      The length of the text