|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.fastparser.node.SimpleNode | +--com.japisoft.fastparser.dom.NodeImpl | +--com.japisoft.fastparser.dom.CharacterDataImpl | +--com.japisoft.fastparser.dom.TextImpl
Text
Field Summary |
Fields inherited from class com.japisoft.fastparser.dom.NodeImpl |
nameSpaceURI |
Fields inherited from class com.japisoft.fastparser.node.SimpleNode |
COMMENT_NODE, TAG_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
TextImpl(java.lang.String content)
|
Method Summary | |
Text |
splitText(int offset)
Breaks this Text node into two Text nodes at the specified
offset, keeping both in the tree as siblings. |
Methods inherited from class com.japisoft.fastparser.dom.CharacterDataImpl |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from class com.japisoft.fastparser.dom.NodeImpl |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setPrefix |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.CharacterData |
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue |
Constructor Detail |
public TextImpl(java.lang.String content)
Method Detail |
public Text splitText(int offset) throws DOMException
Text
node into two Text nodes at the specified
offset, keeping both in the tree as siblings. This node then only
contains all the content up to the offset
point. And a new
Text
node, which is inserted as the next sibling of this
node, contains all the content at and after the offset
point.
splitText
in interface Text
offset
- The offset at which to split, starting from 0.
Text
node.
DOMException
- INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
than the number of characters in data
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |