Java org.jsoup.nodes Document fields, constructors, methods, implement or subclass

Example usage for Java org.jsoup.nodes Document fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jsoup.nodes Document.

The text is from its open source code.

Implementation

org.jsoup.nodes.Document has the following implementations.
Click this link to see all its implementation.

Field

OutputSettingsoutputSettings
Stringlocation

Constructor

Document(String baseUri)
Create a new, empty Document.

Method

Elementappend(String html)
Add inner HTML to this element.
ElementappendChild(Node child)
Add a node child node to this element.
StringbaseUri()
Elementbody()
Accessor to the document's body element.
voidcharset(Charset charset)
Sets the charset used in this document.
Elementchild(int index)
Get a child element of this element, by its 0-based index number.
ListchildNodes()
Get this node's children.
Elementschildren()
Get this element's child elements.
Documentclone()
ElementcreateElement(String tagName)
Create a new Element, with this document's base uri.
DocumentcreateShell(String baseUri)
Create a valid, empty shell of a document, suitable for adding more elements to.
Stringdata()
Get the combined data of this element.
Elementempty()
Remove all of the element's child nodes.
ElementsgetAllElements()
Find all elements under this element (including self, and children of children).
ElementgetElementById(String id)
Find an element by ID, including or under this element.
ElementsgetElementsByAttribute(String key)
Find elements that have a named attribute set.
ElementsgetElementsByAttributeStarting(String keyPrefix)
Find elements that have an attribute name starting with the supplied prefix.
ElementsgetElementsByAttributeValue(String key, String value)
Find elements that have an attribute with the specific value.
ElementsgetElementsByAttributeValueContaining(String key, String match)
Find elements that have attributes whose value contains the match string.
ElementsgetElementsByAttributeValueEnding(String key, String valueSuffix)
Find elements that have attributes that end with the value suffix.
ElementsgetElementsByAttributeValueMatching(String key, Pattern pattern)
Find elements that have attributes whose values match the supplied regular expression.
ElementsgetElementsByAttributeValueStarting(String key, String valuePrefix)
Find elements that have attributes that start with the value prefix.
ElementsgetElementsByClass(String className)
Find elements that have this class, including or under this element.
ElementsgetElementsByTag(String tagName)
Finds elements, including and recursively under this element, with the specified tag name.
ElementsgetElementsContainingOwnText(String searchText)
Find elements that directly contain the specified string.
ElementsgetElementsContainingText(String searchText)
Find elements that contain the specified string.
ElementsgetElementsMatchingOwnText(Pattern pattern)
Find elements whose own text matches the supplied regular expression.
ElementsgetElementsMatchingText(Pattern pattern)
Find elements whose text matches the supplied regular expression.
booleanhasSameValue(Object o)
Check if this node is has the same content as another node.
Elementhead()
Accessor to the document's head element.
Stringhtml()
Retrieves the element's inner HTML.
Thtml(T appendable)
ElementinsertChildren(int index, Collection children)
Inserts the given child nodes into this element at the specified index.
Documentnormalise()
Normalise the document.
StringouterHtml()
Elementprepend(String html)
Add inner HTML into this element.
Elementsselect(String cssQuery)
Find elements that match the Selector CSS query, with this element as the starting context.
voidsetBaseUri(final String baseUri)
Update the base URI of this node and all of its descendants.
Stringtext()
Gets the combined text of this element and all its children.
Stringtitle()
Get the string contents of the document's title element.
StringtoString()
Gets this node's outer HTML.
Nodetraverse(NodeVisitor nodeVisitor)
Perform a depth-first traversal through this node and its descendants.