Interface Text

All Superinterfaces:
CharacterData, Node
All Known Subinterfaces:
CDATASection

public interface Text extends CharacterData
This interface describes text nodes, as might occur between tags. These may also be CDATASection nodes.
  • Method Details

    • splitText

      Text splitText(int offset)
      Splits the node into two text nodes. The current node is truncated to offset, and the new node is inserted as the next sibling. The new node created is also returned.
      Parameters:
      offset - how far from the beginning to start splitting
      Returns:
      new Text node containing the data after offset