Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- a- Variable in class org.jsoup.select.Evaluator.CssNthEvaluator
-
Step
- absUrl(String)- Method in class org.jsoup.nodes.LeafNode
- absUrl(String)- Method in class org.jsoup.nodes.Node
-
Get an absolute URL from a URL attribute that may be relative (such as an
<a href>
or<img src>
). - add(int, E)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- add(E)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- add(String, String)- Method in class org.jsoup.nodes.Attributes
-
Adds a new attribute.
- add(Tag)- Method in class org.jsoup.parser.TagSet
-
Insert a tag into this TagSet.
- add(Evaluator)- Method in class org.jsoup.select.CombiningEvaluator
- addAll(int, Collection<? extends E>)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- addAll(Collection<? extends E>)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- addAll(Attributes)- Method in class org.jsoup.nodes.Attributes
-
Add all the attributes from the incoming set to this set.
- addAttributes(String, String...)- Method in class org.jsoup.safety.Safelist
-
Add a list of allowed attributes to a tag.
- addChildren(int, Node...)- Method in class org.jsoup.nodes.Node
- addChildren(Node...)- Method in class org.jsoup.nodes.Node
- addClass(String)- Method in class org.jsoup.nodes.Element
-
Add a class name to this element's
class
attribute. - addClass(String)- Method in class org.jsoup.select.Elements
-
Add the class name to every matched element's
class
attribute. - addElement(Element)- Method in class org.jsoup.nodes.FormElement
-
Add a form control element to this form.
- addEnforcedAttribute(String, String, String)- Method in class org.jsoup.safety.Safelist
-
Add an enforced attribute to a tag.
- addFirst(String)- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.will be removed in 1.21.1.
- addHeader(String, String)- Method in class org.jsoup.helper.HttpConnection.Response
- addHeader(String, String)- Method in interface org.jsoup.Connection.Base
-
Add a header.
- addProtocols(String, String, String...)- Method in class org.jsoup.safety.Safelist
-
Add allowed URL protocols for an element's URL attribute.
- addTags(String...)- Method in class org.jsoup.safety.Safelist
-
Add a list of allowed elements to a safelist.
- advance()- Method in class org.jsoup.parser.CharacterReader
-
Moves the current position by one.
- advance()- Method in class org.jsoup.parser.TokenQueue
-
Drops the next character off the queue.
- after(String)- Method in class org.jsoup.nodes.Element
-
Insert the specified HTML into the DOM after this element (as a following sibling).
- after(String)- Method in class org.jsoup.nodes.Node
-
Insert the specified HTML into the DOM after this node (as a following sibling).
- after(String)- Method in class org.jsoup.select.Elements
-
Insert the supplied HTML after each matched element's outer HTML.
- after(Node)- Method in class org.jsoup.nodes.Element
-
Insert the specified node into the DOM after this node (as a following sibling).
- after(Node)- Method in class org.jsoup.nodes.Node
-
Insert the specified node into the DOM after this node (as a following sibling).
- AllElements()- Constructor for class org.jsoup.select.Evaluator.AllElements
- And(Collection<Evaluator>)- Constructor for class org.jsoup.select.CombiningEvaluator.And
- append(String)- Method in class org.jsoup.nodes.Element
-
Add inner HTML to this element.
- append(String)- Method in class org.jsoup.select.Elements
-
Add the supplied HTML to the end of each matched element's inner HTML.
- appendChild(Node)- Method in class org.jsoup.nodes.Element
-
Insert a node to the end of this Element's children.
- appendChildren(Collection<? extends Node>)- Method in class org.jsoup.nodes.Element
-
Insert the given nodes to the end of this Element's children.
- appendElement(String)- Method in class org.jsoup.nodes.Element
-
Create a new element by tag name, and add it as this Element's last child.
- appendElement(String, String)- Method in class org.jsoup.nodes.Element
-
Create a new element by tag name and namespace, add it as this Element's last child.
- appendText(String)- Method in class org.jsoup.nodes.Element
-
Create and append a new TextNode to this element.
- appendTo(Element)- Method in class org.jsoup.nodes.Element
-
Add this element to the supplied parent element, as its next child.
- asList()- Method in class org.jsoup.nodes.Attributes
-
Get the attributes as a List, for iteration.
- asList()- Method in class org.jsoup.select.Elements
-
Convenience method to get the Elements as a plain ArrayList.
- asPredicate(Element)- Method in class org.jsoup.select.Evaluator
-
Provides a Predicate for this Evaluator, matching the test Element.
- asString(Document)- Method in class org.jsoup.helper.W3CDom
-
Serialize a W3C document that was created by
W3CDom.fromJsoup(
to a String.org.jsoup.nodes.Element) - asString(Document, Map<String, String>)- Static method in class org.jsoup.helper.W3CDom
-
Serialize a W3C document to a String.
- asXmlDeclaration()- Method in class org.jsoup.nodes.Comment
-
Attempt to cast this comment to an XML Declaration node.
- attr(String)- Method in class org.jsoup.nodes.LeafNode
- attr(String)- Method in class org.jsoup.nodes.Node
-
Get an attribute's value by its key.
- attr(String)- Method in class org.jsoup.select.Elements
-
Get an attribute value from the first matched element that has the attribute.
- attr(String, boolean)- Method in class org.jsoup.nodes.Element
-
Set a boolean attribute value on this element.
- attr(String, String)- Method in class org.jsoup.nodes.Element
-
Set an attribute value on this element.
- attr(String, String)- Method in class org.jsoup.nodes.LeafNode
- attr(String, String)- Method in class org.jsoup.nodes.Node
-
Set an attribute (key=value).
- attr(String, String)- Method in class org.jsoup.select.Elements
-
Set an attribute on all matched elements.
- attribute(String)- Method in class org.jsoup.nodes.Attributes
-
Get an Attribute by key.
- attribute(String)- Method in class org.jsoup.nodes.Element
-
Get an Attribute by key.
- Attribute- Class in org.jsoup.nodes
-
A single key + value attribute.
- Attribute(String)- Constructor for class org.jsoup.select.Evaluator.Attribute
- Attribute(String, String)- Constructor for class org.jsoup.nodes.Attribute
-
Create a new attribute from unencoded (raw) key and value.
- Attribute(String, String, Attributes)- Constructor for class org.jsoup.nodes.Attribute
-
Create a new attribute from unencoded (raw) key and value.
- AttributeKeyPair(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeKeyPair
- AttributeKeyPair(String, String, boolean)- Constructor for class org.jsoup.select.Evaluator.AttributeKeyPair
- AttributeRange(Range, Range)- Constructor for class org.jsoup.nodes.Range.AttributeRange
-
Creates a new AttributeRange.
- attributes()- Method in class org.jsoup.nodes.Element
- attributes()- Method in class org.jsoup.nodes.LeafNode
- attributes()- Method in class org.jsoup.nodes.Node
-
Get each of the Element's attributes.
- Attributes- Class in org.jsoup.nodes
-
The attributes of an Element.
- Attributes()- Constructor for class org.jsoup.nodes.Attributes
- attributesSize()- Method in class org.jsoup.nodes.Node
-
Get the number of attributes that this Node has.
- AttributeStarting(String)- Constructor for class org.jsoup.select.Evaluator.AttributeStarting
- AttributeWithValue(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValue
- AttributeWithValueContaining(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValueContaining
- AttributeWithValueEnding(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValueEnding
- AttributeWithValueMatching(String, Pattern)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValueMatching
- AttributeWithValueNot(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValueNot
- AttributeWithValueStarting(String, String)- Constructor for class org.jsoup.select.Evaluator.AttributeWithValueStarting
- auth()- Method in interface org.jsoup.Connection.Request
-
Get the RequestAuthenticator, if any, that will be used on this request.
- auth()- Method in class org.jsoup.helper.HttpConnection.Request
- auth(RequestAuthenticator)- Method in interface org.jsoup.Connection
-
Set the authenticator to use for this connection, enabling requests to URLs, and via proxies, that require authentication credentials.
- auth(RequestAuthenticator)- Method in interface org.jsoup.Connection.Request
-
Set the authenticator to use for this request.
- auth(RequestAuthenticator)- Method in class org.jsoup.helper.HttpConnection
- auth(RequestAuthenticator)- Method in class org.jsoup.helper.HttpConnection.Request
- authenticate(RequestAuthenticator.Context)- Method in interface org.jsoup.helper.RequestAuthenticator
-
Provide authentication credentials for the provided Request Context.
B
- b- Variable in class org.jsoup.select.Evaluator.CssNthEvaluator
-
Offset
- base- Enum constant in enum org.jsoup.nodes.Entities.EscapeMode
-
Default HTML output entities.
- baseUri()- Method in class org.jsoup.nodes.Element
- baseUri()- Method in class org.jsoup.nodes.LeafNode
- baseUri()- Method in class org.jsoup.nodes.Node
-
Get the base URI that applies to this node.
- basic()- Static method in class org.jsoup.safety.Safelist
-
This safelist allows a fuller range of text nodes:
a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul
, and appropriate attributes. - basicWithImages()- Static method in class org.jsoup.safety.Safelist
-
This safelist allows the same text tags as
Safelist.basic(
, and also allows) img
tags, with appropriate attributes, withsrc
pointing tohttp
orhttps
. - before(String)- Method in class org.jsoup.nodes.Element
-
Insert the specified HTML into the DOM before this element (as a preceding sibling).
- before(String)- Method in class org.jsoup.nodes.Node
-
Insert the specified HTML into the DOM before this node (as a preceding sibling).
- before(String)- Method in class org.jsoup.select.Elements
-
Insert the supplied HTML before each matched element's outer HTML.
- before(Node)- Method in class org.jsoup.nodes.Element
-
Insert the specified node into the DOM before this node (as a preceding sibling).
- before(Node)- Method in class org.jsoup.nodes.Node
-
Insert the specified node into the DOM before this node (as a preceding sibling).
- Block- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is a block tag (e.g.
- body()- Method in interface org.jsoup.Connection.Response
-
Get the body of the response as a plain string.
- body()- Method in class org.jsoup.helper.HttpConnection.Response
- body()- Method in class org.jsoup.nodes.Document
-
Get this document's
<body>
or<frameset>
element. - bodyAsBytes()- Method in interface org.jsoup.Connection.Response
-
Get the body of the response as an array of bytes.
- bodyAsBytes()- Method in class org.jsoup.helper.HttpConnection.Response
- bodyStream()- Method in interface org.jsoup.Connection.Response
-
Get the body of the response as a (buffered) InputStream.
- bodyStream()- Method in class org.jsoup.helper.HttpConnection.Response
- bufferUp()- Method in interface org.jsoup.Connection.Response
-
Read the body of the response into a local buffer, so that
Connection.Response.parse(
may be called repeatedly on the same connection response.) - bufferUp()- Method in class org.jsoup.helper.HttpConnection.Response
C
- calculatePosition(Element, Element)- Method in class org.jsoup.select.Evaluator.CssNthEvaluator
- calculatePosition(Element, Element)- Method in class org.jsoup.select.Evaluator.IsNthChild
- calculatePosition(Element, Element)- Method in class org.jsoup.select.Evaluator.IsNthLastChild
- calculatePosition(Element, Element)- Method in class org.jsoup.select.Evaluator.IsNthLastOfType
- calculatePosition(Element, Element)- Method in class org.jsoup.select.Evaluator.IsNthOfType
- CDataNode- Class in org.jsoup.nodes
-
A Character Data node, to support CDATA sections.
- CDataNode(String)- Constructor for class org.jsoup.nodes.CDataNode
- ChangeNotifyingArrayList<E> - Class in org.jsoup.helper
-
Deprecated.this class is no longer used and will be removed in jsoup 1.21.1.
- ChangeNotifyingArrayList(int)- Constructor for class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- CharacterReader- Class in org.jsoup.parser
-
CharacterReader consumes tokens off a string.
- CharacterReader(Reader)- Constructor for class org.jsoup.parser.CharacterReader
- CharacterReader(Reader, int)- Constructor for class org.jsoup.parser.CharacterReader
- CharacterReader(String)- Constructor for class org.jsoup.parser.CharacterReader
- charset()- Method in interface org.jsoup.Connection.Response
-
Get the character set name of the response, derived from the content-type header.
- charset()- Method in class org.jsoup.helper.HttpConnection.Response
- charset()- Method in class org.jsoup.nodes.Document
-
Get the output character set of this Document.
- charset()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get the document's current output charset, which is used to control which characters are escaped when generating HTML (via the
html(
methods), and which are kept intact.) - charset(String)- Method in interface org.jsoup.Connection.Response
-
Set / override the response character set.
- charset(String)- Method in class org.jsoup.helper.HttpConnection.Response
- charset(String)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Update the document's output charset.
- charset(Charset)- Method in class org.jsoup.nodes.Document
-
Set the output character set of this Document.
- charset(Charset)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Update the document's output charset.
- child(int)- Method in class org.jsoup.nodes.Element
-
Get a child element of this element, by its 0-based index number.
- childNode(int)- Method in class org.jsoup.nodes.Node
-
Get a child node by its 0-based index.
- childNodes()- Method in class org.jsoup.nodes.Node
-
Get this node's children.
- childNodesAsArray()- Method in class org.jsoup.nodes.Node
- childNodesCopy()- Method in class org.jsoup.nodes.Node
-
Returns a deep copy of this node's children.
- childNodeSize()- Method in class org.jsoup.nodes.Element
- childNodeSize()- Method in class org.jsoup.nodes.LeafNode
- childNodeSize()- Method in class org.jsoup.nodes.Node
-
Get the number of child nodes that this node holds.
- children()- Method in class org.jsoup.nodes.Element
-
Get this element's child elements.
- childrenSize()- Method in class org.jsoup.nodes.Element
-
Get the number of child nodes of this element that are elements.
- chompBalanced(char, char)- Method in class org.jsoup.parser.TokenQueue
-
Pulls a balanced string off the queue.
- chompTo(String)- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.will be removed in 1.21.1
- chompToIgnoreCase(String)- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.will be removed in 1.21.1.
- Class(String)- Constructor for class org.jsoup.select.Evaluator.Class
- className()- Method in class org.jsoup.nodes.Element
-
Gets the literal value of this element's "class" attribute, which may include multiple class names, space separated.
- classNames()- Method in class org.jsoup.nodes.Element
-
Get each of the element's class names.
- classNames(Set<String>)- Method in class org.jsoup.nodes.Element
-
Set the element's
class
attribute to the supplied class names. - clean(String, String, Safelist)- Static method in class org.jsoup.Jsoup
-
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through an allow-list of safe tags and attributes.
- clean(String, String, Safelist, Document.OutputSettings)- Static method in class org.jsoup.Jsoup
-
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a safe-list of permitted tags and attributes.
- clean(String, Safelist)- Static method in class org.jsoup.Jsoup
-
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a safe-list of permitted tags and attributes.
- clean(Document)- Method in class org.jsoup.safety.Cleaner
-
Creates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.
- Cleaner- Class in org.jsoup.safety
-
The safelist based HTML cleaner.
- Cleaner(Safelist)- Constructor for class org.jsoup.safety.Cleaner
-
Create a new cleaner, that sanitizes documents using the supplied safelist.
- clear()- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- clear()- Method in class org.jsoup.select.Elements
-
Removes all the elements from this list, and each of them from the DOM.
- clear(int)- Method in class org.jsoup.parser.Tag
-
Clear (unset) an option from this tag.
- clearAttributes()- Method in class org.jsoup.nodes.Element
- clearAttributes()- Method in class org.jsoup.nodes.Node
-
Clear (remove) each of the attributes in this node.
- clone()- Method in class org.jsoup.nodes.Attribute
- clone()- Method in class org.jsoup.nodes.Attributes
- clone()- Method in class org.jsoup.nodes.CDataNode
- clone()- Method in class org.jsoup.nodes.Comment
- clone()- Method in class org.jsoup.nodes.DataNode
- clone()- Method in class org.jsoup.nodes.Document
- clone()- Method in class org.jsoup.nodes.Document.OutputSettings
- clone()- Method in class org.jsoup.nodes.Element
- clone()- Method in class org.jsoup.nodes.FormElement
- clone()- Method in class org.jsoup.nodes.Node
-
Create a stand-alone, deep copy of this node, and all of its children.
- clone()- Method in class org.jsoup.nodes.TextNode
- clone()- Method in class org.jsoup.nodes.XmlDeclaration
- clone()- Method in class org.jsoup.parser.ParseErrorList
- clone()- Method in class org.jsoup.parser.Parser
- clone()- Method in class org.jsoup.parser.Tag
- clone()- Method in class org.jsoup.select.Elements
-
Creates a deep copy of these elements.
- close()- Method in class org.jsoup.parser.CharacterReader
- close()- Method in class org.jsoup.parser.StreamParser
-
Closes the input and releases resources including the underlying parser and reader.
- closest(String)- Method in class org.jsoup.nodes.Element
-
Find the closest element up the tree of parents that matches the specified CSS query.
- closest(Evaluator)- Method in class org.jsoup.nodes.Element
-
Find the closest element up the tree of parents that matches the specified evaluator.
- codepointsForName(String, int[])- Static method in class org.jsoup.nodes.Entities
- collect(Evaluator, Element)- Static method in class org.jsoup.select.Collector
-
Build a list of elements, by visiting the root and every descendant of root, and testing it against the Evaluator.
- Collector- Class in org.jsoup.select
-
Collects a list of elements that match the supplied criteria.
- columnNumber()- Method in class org.jsoup.nodes.Range.Position
-
Gets the cursor number (1-based) of the original input source that this Position was read at.
- columnNumber()- Method in class org.jsoup.parser.CharacterReader
-
Get the current column number (that the reader has consumed to).
- CombiningEvaluator- Class in org.jsoup.select
-
Base combining (and, or) evaluator.
- CombiningEvaluator.And- Class in org.jsoup.select
- CombiningEvaluator.Or- Class in org.jsoup.select
- Comment- Class in org.jsoup.nodes
-
A comment node.
- Comment(String)- Constructor for class org.jsoup.nodes.Comment
-
Create a new comment node.
- comments()- Method in class org.jsoup.select.Elements
-
Get
Comment
nodes that are direct child nodes of the selected elements. - complete()- Method in class org.jsoup.parser.StreamParser
-
Runs the parser until the input is fully read, and returns the completed Document.
- completeFragment()- Method in class org.jsoup.parser.StreamParser
-
When initialized as a fragment parse, runs the parser until the input is fully read, and returns the completed fragment child nodes.
- connect(String)- Static method in class org.jsoup.helper.HttpConnection
-
Create a new Connection, with the request URL specified.
- connect(String)- Static method in class org.jsoup.Jsoup
-
Creates a new
Connection
(session), with the defined request URL. - connect(URL)- Static method in class org.jsoup.helper.HttpConnection
-
Create a new Connection, with the request URL specified.
- connection()- Method in class org.jsoup.nodes.Document
-
Returns the Connection (Request/Response) object that was used to fetch this document, if any; otherwise, a new default Connection object.
- connection(Connection)- Method in class org.jsoup.nodes.Document
-
Set the Connection used to fetch this document.
- Connection- Interface in org.jsoup
-
The Connection interface is a convenient HTTP client and session object to fetch content from the web, and parse them into Documents.
- Connection.Base<T extends Connection.Base<T>> - Interface in org.jsoup
-
Common methods for Requests and Responses
- Connection.KeyVal- Interface in org.jsoup
-
A Key:Value tuple(+), used for form data.
- Connection.Method- Enum in org.jsoup
-
GET and POST http methods.
- Connection.Request- Interface in org.jsoup
-
Represents a HTTP request.
- Connection.Response- Interface in org.jsoup
-
Represents a HTTP response.
- consume()- Method in class org.jsoup.parser.CharacterReader
-
Consume one character off the queue.
- consume()- Method in class org.jsoup.parser.TokenQueue
-
Consume one character off queue.
- consume(String)- Method in class org.jsoup.parser.TokenQueue
-
Consumes the supplied sequence of the queue, case-insensitively.
- consumeCssIdentifier()- Method in class org.jsoup.parser.TokenQueue
-
Consume a CSS identifier (ID or class) off the queue.
- consumeElementSelector()- Method in class org.jsoup.parser.TokenQueue
-
Consume a CSS element selector (tag name, but | instead of : for namespaces (or *| for wildcard namespace), to not conflict with :pseudo selects).
- consumeTo(char)- Method in class org.jsoup.parser.CharacterReader
-
Reads characters up to the specific char.
- consumeTo(String)- Method in class org.jsoup.parser.CharacterReader
-
Reads the characters up to (but not including) the specified case-sensitive string.
- consumeTo(String)- Method in class org.jsoup.parser.TokenQueue
-
Pulls a string off the queue, up to but exclusive of the match sequence, or to the queue running out.
- consumeToAny(char...)- Method in class org.jsoup.parser.CharacterReader
-
Read characters until the first of any delimiters is found.
- consumeToAny(String...)- Method in class org.jsoup.parser.TokenQueue
-
Consumes to the first sequence provided, or to the end of the queue.
- consumeToIgnoreCase(String)- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.
- consumeWhitespace()- Method in class org.jsoup.parser.TokenQueue
-
Pulls the next run of whitespace characters of the queue.
- consumeWord()- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.will be removed in 1.21.1
- ContainsData(String)- Constructor for class org.jsoup.select.Evaluator.ContainsData
- ContainsOwnText(String)- Constructor for class org.jsoup.select.Evaluator.ContainsOwnText
- ContainsText(String)- Constructor for class org.jsoup.select.Evaluator.ContainsText
- ContainsWholeOwnText(String)- Constructor for class org.jsoup.select.Evaluator.ContainsWholeOwnText
- ContainsWholeText(String)- Constructor for class org.jsoup.select.Evaluator.ContainsWholeText
- CONTENT_ENCODING- Static variable in class org.jsoup.helper.HttpConnection
- CONTENT_TYPE- Static variable in class org.jsoup.helper.HttpConnection
- contentType()- Method in interface org.jsoup.Connection.KeyVal
-
Get the current Content Type, or
null
if not set. - contentType()- Method in interface org.jsoup.Connection.Response
-
Get the response content type (e.g.
- contentType()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- contentType()- Method in class org.jsoup.helper.HttpConnection.Response
- contentType(String)- Method in interface org.jsoup.Connection.KeyVal
-
Set the Content Type header used in the MIME body (aka mimetype) when uploading files.
- contentType(String)- Method in class org.jsoup.helper.HttpConnection.KeyVal
- contextNode(Document)- Method in class org.jsoup.helper.W3CDom
-
For a Document created by
W3CDom.fromJsoup(
, retrieves the W3C context node.org.jsoup.nodes.Element) - CONTINUE- Enum constant in enum org.jsoup.select.NodeFilter.FilterResult
-
Continue processing the tree
- convert(Document)- Static method in class org.jsoup.helper.W3CDom
-
Converts a jsoup DOM to a W3C DOM.
- convert(Document, Document)- Method in class org.jsoup.helper.W3CDom
-
Converts a jsoup document into the provided W3C Document.
- convert(Element, Document)- Method in class org.jsoup.helper.W3CDom
-
Converts a jsoup element into the provided W3C Document.
- cookie(String)- Method in interface org.jsoup.Connection.Base
-
Get a cookie value by name from this request/response.
- cookie(String)- Method in class org.jsoup.helper.HttpConnection.Response
- cookie(String, String)- Method in interface org.jsoup.Connection.Base
-
Set a cookie in this request/response.
- cookie(String, String)- Method in interface org.jsoup.Connection
-
Set a cookie to be sent in the request.
- cookie(String, String)- Method in class org.jsoup.helper.HttpConnection.Response
- cookie(String, String)- Method in class org.jsoup.helper.HttpConnection
- cookies()- Method in interface org.jsoup.Connection.Base
-
Retrieve the request/response cookies as a map.
- cookies()- Method in class org.jsoup.helper.HttpConnection.Response
- cookies(Map<String, String>)- Method in interface org.jsoup.Connection
-
Adds each of the supplied cookies to the request.
- cookies(Map<String, String>)- Method in class org.jsoup.helper.HttpConnection
- cookieStore()- Method in interface org.jsoup.Connection
-
Get the cookie store used by this Connection.
- cookieStore()- Method in class org.jsoup.helper.HttpConnection
- cookieStore(CookieStore)- Method in interface org.jsoup.Connection
-
Provide a custom or pre-filled CookieStore to be used on requests made by this Connection.
- cookieStore(CookieStore)- Method in class org.jsoup.helper.HttpConnection
- cost()- Method in class org.jsoup.select.CombiningEvaluator
- cost()- Method in class org.jsoup.select.Evaluator.AllElements
- cost()- Method in class org.jsoup.select.Evaluator.Attribute
- cost()- Method in class org.jsoup.select.Evaluator.AttributeStarting
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValue
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValueContaining
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValueEnding
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValueMatching
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValueNot
- cost()- Method in class org.jsoup.select.Evaluator.AttributeWithValueStarting
- cost()- Method in class org.jsoup.select.Evaluator.Class
- cost()- Method in class org.jsoup.select.Evaluator.ContainsText
- cost()- Method in class org.jsoup.select.Evaluator.ContainsWholeText
- cost()- Method in class org.jsoup.select.Evaluator
-
A relative evaluator cost function.
- cost()- Method in class org.jsoup.select.Evaluator.Id
- cost()- Method in class org.jsoup.select.Evaluator.IsRoot
- cost()- Method in class org.jsoup.select.Evaluator.Matches
- cost()- Method in class org.jsoup.select.Evaluator.MatchesOwn
- cost()- Method in class org.jsoup.select.Evaluator.MatchesWholeOwnText
- cost()- Method in class org.jsoup.select.Evaluator.MatchesWholeText
- cost()- Method in class org.jsoup.select.Evaluator.MatchText
- cost()- Method in class org.jsoup.select.Evaluator.Tag
- create(String, String)- Static method in class org.jsoup.helper.HttpConnection.KeyVal
- create(String, String, InputStream)- Static method in class org.jsoup.helper.HttpConnection.KeyVal
- createElement(String)- Method in class org.jsoup.nodes.Document
-
Create a new Element, with this document's base uri.
- createFromEncoded(String)- Static method in class org.jsoup.nodes.TextNode
-
Create a new TextNode from HTML encoded (aka escaped) data.
- createFromEncoded(String, String)- Static method in class org.jsoup.nodes.Attribute
-
Create a new Attribute from an unencoded key and a HTML attribute encoded value.
- createShell(String)- Static method in class org.jsoup.nodes.Document
-
Create a valid, empty shell of an HTML document, suitable for adding more elements to.
- credentials(String, String)- Method in class org.jsoup.helper.RequestAuthenticator.Context
-
Helper method to return a PasswordAuthentication object.
- CssNthEvaluator(int)- Constructor for class org.jsoup.select.Evaluator.CssNthEvaluator
- CssNthEvaluator(int, int)- Constructor for class org.jsoup.select.Evaluator.CssNthEvaluator
- cssSelector()- Method in class org.jsoup.nodes.Element
-
Get a CSS selector that will uniquely select this element.
- current()- Method in class org.jsoup.parser.CharacterReader
-
Get the char at the current position.
D
- data()- Method in interface org.jsoup.Connection.Request
-
Get all of the request's data parameters
- data()- Method in class org.jsoup.helper.HttpConnection.Request
- data()- Method in class org.jsoup.nodes.Element
-
Get the combined data of this element.
- data(String)- Method in interface org.jsoup.Connection
-
Get the data KeyVal for this key, if any
- data(String)- Method in class org.jsoup.helper.HttpConnection
- data(String...)- Method in interface org.jsoup.Connection
-
Add one or more request
key, val
data parameter pairs. - data(String...)- Method in class org.jsoup.helper.HttpConnection
- data(String, String)- Method in interface org.jsoup.Connection
-
Add a request data parameter.
- data(String, String)- Method in class org.jsoup.helper.HttpConnection
- data(String, String, InputStream)- Method in interface org.jsoup.Connection
-
Add an input stream as a request data parameter.
- data(String, String, InputStream)- Method in class org.jsoup.helper.HttpConnection
- data(String, String, InputStream, String)- Method in interface org.jsoup.Connection
-
Add an input stream as a request data parameter.
- data(String, String, InputStream, String)- Method in class org.jsoup.helper.HttpConnection
- data(Collection<Connection.KeyVal>)- Method in interface org.jsoup.Connection
-
Adds all of the supplied data to the request data parameters
- data(Collection<Connection.KeyVal>)- Method in class org.jsoup.helper.HttpConnection
- data(Map<String, String>)- Method in interface org.jsoup.Connection
-
Adds all of the supplied data to the request data parameters
- data(Map<String, String>)- Method in class org.jsoup.helper.HttpConnection
- data(Connection.KeyVal)- Method in interface org.jsoup.Connection.Request
-
Add a data parameter to the request
- data(Connection.KeyVal)- Method in class org.jsoup.helper.HttpConnection.Request
- Data- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is a Data element that can have text but not character references (e.g.
- DataNode- Class in org.jsoup.nodes
-
A data node, for contents of style, script tags etc, where contents should not show in text().
- DataNode(String)- Constructor for class org.jsoup.nodes.DataNode
-
Create a new DataNode.
- dataNodes()- Method in class org.jsoup.nodes.Element
-
Get this element's child data nodes.
- dataNodes()- Method in class org.jsoup.select.Elements
-
Get
DataNode
nodes that are direct child nodes of the selected elements. - dataPrefix- Static variable in class org.jsoup.nodes.Attributes
- dataset()- Method in class org.jsoup.nodes.Attributes
-
Retrieves a filtered view of attributes that are HTML5 custom data attributes; that is, attributes with keys starting with
data-
. - dataset()- Method in class org.jsoup.nodes.Element
-
Get this element's HTML5 custom data attributes.
- DataUtil- Class in org.jsoup.helper
-
Internal static utilities for handling data.
- deduplicate(ParseSettings)- Method in class org.jsoup.nodes.Attributes
-
Internal method.
- DEFAULT_UA- Static variable in class org.jsoup.helper.HttpConnection
-
Many users would get caught by not setting a user-agent and therefore getting different responses on their desktop vs in jsoup, which would otherwise default to
Java
. - defaultNamespace()- Method in class org.jsoup.parser.Parser
- defaultNamespace()- Method in class org.jsoup.parser.XmlTreeBuilder
- DELETE- Enum constant in enum org.jsoup.Connection.Method
- deselect(int)- Method in class org.jsoup.select.Elements
-
Remove the Element at the specified index in this list, but not from the DOM.
- deselect(Object)- Method in class org.jsoup.select.Elements
-
Remove the specified Element from this list, but not from the DOM.
- deselectAll()- Method in class org.jsoup.select.Elements
-
Like
Elements.clear(
, removes all the elements from this list, but not from the DOM.) - doClone(Node)- Method in class org.jsoup.nodes.Element
- doClone(Node)- Method in class org.jsoup.nodes.Node
- doClone(Node)- Method in class org.jsoup.nodes.LeafNode
- document()- Method in class org.jsoup.parser.StreamParser
-
Get the current
Document
as it is being parsed. - Document- Class in org.jsoup.nodes
-
A HTML Document.
- Document(String)- Constructor for class org.jsoup.nodes.Document
-
Create a new, empty Document, in the HTML namespace.
- Document(String, String)- Constructor for class org.jsoup.nodes.Document
-
Create a new, empty Document, in the specified namespace.
- Document.OutputSettings- Class in org.jsoup.nodes
-
A Document's output settings control the form of the text() and html() methods.
- Document.OutputSettings.Syntax- Enum in org.jsoup.nodes
-
The output serialization syntax.
- Document.QuirksMode- Enum in org.jsoup.nodes
- documentType()- Method in class org.jsoup.nodes.Document
-
Returns this Document's doctype.
- DocumentType- Class in org.jsoup.nodes
-
A
<!DOCTYPE>
node. - DocumentType(String, String, String)- Constructor for class org.jsoup.nodes.DocumentType
-
Create a new doctype element.
- doSetBaseUri(String)- Method in class org.jsoup.nodes.Element
- doSetBaseUri(String)- Method in class org.jsoup.nodes.LeafNode
- doSetBaseUri(String)- Method in class org.jsoup.nodes.Node
-
Set the baseUri for just this node (not its descendants), if this Node tracks base URIs.
E
- eachAttr(String)- Method in class org.jsoup.select.Elements
-
Get the attribute value for each of the matched elements.
- eachText()- Method in class org.jsoup.select.Elements
-
Get the text content of each of the matched elements.
- Element- Class in org.jsoup.nodes
-
An HTML Element consists of a tag name, attributes, and child nodes (including text nodes and other elements).
- Element(String)- Constructor for class org.jsoup.nodes.Element
-
Create a new, standalone element, in the HTML namespace.
- Element(String, String)- Constructor for class org.jsoup.nodes.Element
-
Create a new, standalone element, in the specified namespace.
- Element(Tag, String)- Constructor for class org.jsoup.nodes.Element
-
Create a new Element from a Tag and a base URI.
- Element(Tag, String, Attributes)- Constructor for class org.jsoup.nodes.Element
-
Create a new, standalone Element.
- elementIs(String, String)- Method in class org.jsoup.nodes.Element
-
Test if this Element has the specified normalized name, and is in the specified namespace.
- elements()- Method in class org.jsoup.nodes.FormElement
-
Get the list of form control elements associated with this form.
- Elements- Class in org.jsoup.select
-
A list of
Element
s, with methods that act on every element in the list. - Elements()- Constructor for class org.jsoup.select.Elements
- Elements(int)- Constructor for class org.jsoup.select.Elements
- Elements(Collection<Element>)- Constructor for class org.jsoup.select.Elements
- Elements(List<Element>)- Constructor for class org.jsoup.select.Elements
- Elements(Element...)- Constructor for class org.jsoup.select.Elements
- elementSiblingIndex()- Method in class org.jsoup.nodes.Element
-
Get the list index of this element in its element sibling list.
- empty()- Method in class org.jsoup.nodes.Element
-
Remove all the element's child nodes.
- empty()- Method in class org.jsoup.nodes.LeafNode
- empty()- Method in class org.jsoup.nodes.Node
-
Delete all this node's children.
- empty()- Method in class org.jsoup.select.Elements
-
Empty (remove all child nodes from) each matched element.
- end()- Method in class org.jsoup.nodes.Range
-
Get the end position of this node.
- endPos()- Method in class org.jsoup.nodes.Range
-
Get the ending cursor position of this range.
- endSourceRange()- Method in class org.jsoup.nodes.Element
-
Get the source range (start and end positions) of the end (closing) tag for this Element.
- ensureChildNodes()- Method in class org.jsoup.nodes.Element
- ensureChildNodes()- Method in class org.jsoup.nodes.LeafNode
- ensureChildNodes()- Method in class org.jsoup.nodes.Node
- ensureNotNull(Object)- Static method in class org.jsoup.helper.Validate
-
Verifies the input object is not null, and returns that object.
- ensureNotNull(Object, String, Object...)- Static method in class org.jsoup.helper.Validate
-
Verifies the input object is not null, and returns that object.
- Entities- Class in org.jsoup.nodes
-
HTML entities, and escape routines.
- Entities.EscapeMode- Enum in org.jsoup.nodes
- eq(int)- Method in class org.jsoup.select.Elements
-
Get the nth matched element as an Elements object.
- equals(Object)- Method in class org.jsoup.nodes.Attribute
- equals(Object)- Method in class org.jsoup.nodes.Attributes
-
Checks if these attributes are equal to another set of attributes, by comparing the two sets.
- equals(Object)- Method in class org.jsoup.nodes.Node
-
Check if this node is the same instance of another (object identity test).
- equals(Object)- Method in class org.jsoup.nodes.Range.AttributeRange
- equals(Object)- Method in class org.jsoup.nodes.Range
- equals(Object)- Method in class org.jsoup.nodes.Range.Position
- equals(Object)- Method in class org.jsoup.parser.Tag
- equals(Object)- Method in class org.jsoup.parser.TagSet
- escape(String)- Static method in class org.jsoup.nodes.Entities
-
HTML escape an input string, using the default settings (UTF-8, base entities, HTML syntax).
- escape(String, Document.OutputSettings)- Static method in class org.jsoup.nodes.Entities
-
HTML escape an input string.
- escapeCssIdentifier(String)- Static method in class org.jsoup.parser.TokenQueue
-
Given a CSS identifier (such as a tag, ID, or class), escape any CSS special characters that would otherwise not be valid in a selector.
- escapeCssIdentifier(String)- Static method in class org.jsoup.select.Selector
-
Given a CSS identifier (such as a tag, ID, or class), escape any CSS special characters that would otherwise not be valid in a selector.
- escapeMode()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get the document's current entity escape mode:
xhtml
, the minimal named entities in XHTML / XMLbase
, which provides a limited set of named HTML entities and escapes other characters as numbered entities for maximum compatibilityextended
, which uses the complete set of HTML named entities. - escapeMode(Entities.EscapeMode)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Set the document's escape mode, which determines how characters are escaped when the output character set does not support a given character:- using either a named or a numbered escape.
- Evaluator- Class in org.jsoup.select
-
An Evaluator tests if an element meets the selector's requirements.
- Evaluator()- Constructor for class org.jsoup.select.Evaluator
- Evaluator.AllElements- Class in org.jsoup.select
-
Evaluator for any / all element matching
- Evaluator.Attribute- Class in org.jsoup.select
-
Evaluator for attribute name matching
- Evaluator.AttributeKeyPair- Class in org.jsoup.select
-
Abstract evaluator for attribute name/value matching
- Evaluator.AttributeStarting- Class in org.jsoup.select
-
Evaluator for attribute name prefix matching
- Evaluator.AttributeWithValue- Class in org.jsoup.select
-
Evaluator for attribute name/value matching
- Evaluator.AttributeWithValueContaining- Class in org.jsoup.select
-
Evaluator for attribute name/value matching (value containing)
- Evaluator.AttributeWithValueEnding- Class in org.jsoup.select
-
Evaluator for attribute name/value matching (value ending)
- Evaluator.AttributeWithValueMatching- Class in org.jsoup.select
-
Evaluator for attribute name/value matching (value regex matching)
- Evaluator.AttributeWithValueNot- Class in org.jsoup.select
-
Evaluator for attribute name !
- Evaluator.AttributeWithValueStarting- Class in org.jsoup.select
-
Evaluator for attribute name/value matching (value prefix)
- Evaluator.Class- Class in org.jsoup.select
-
Evaluator for element class
- Evaluator.ContainsData- Class in org.jsoup.select
-
Evaluator for matching Element (and its descendants) data
- Evaluator.ContainsOwnText- Class in org.jsoup.select
-
Evaluator for matching Element's own text
- Evaluator.ContainsText- Class in org.jsoup.select
-
Evaluator for matching Element (and its descendants) text
- Evaluator.ContainsWholeOwnText- Class in org.jsoup.select
-
Evaluator for matching Element (but not its descendants) wholeText.
- Evaluator.ContainsWholeText- Class in org.jsoup.select
-
Evaluator for matching Element (and its descendants) wholeText.
- Evaluator.CssNthEvaluator- Class in org.jsoup.select
- Evaluator.Id- Class in org.jsoup.select
-
Evaluator for element id
- Evaluator.IndexEquals- Class in org.jsoup.select
-
Evaluator for matching by sibling index number (e = idx)
- Evaluator.IndexEvaluator- Class in org.jsoup.select
-
Abstract evaluator for sibling index matching
- Evaluator.IndexGreaterThan- Class in org.jsoup.select
-
Evaluator for matching by sibling index number (e > idx)
- Evaluator.IndexLessThan- Class in org.jsoup.select
-
Evaluator for matching by sibling index number (e < idx)
- Evaluator.IsEmpty- Class in org.jsoup.select
- Evaluator.IsFirstChild- Class in org.jsoup.select
-
Evaluator for matching the first sibling (css :first-child)
- Evaluator.IsFirstOfType- Class in org.jsoup.select
- Evaluator.IsLastChild- Class in org.jsoup.select
-
Evaluator for matching the last sibling (css :last-child)
- Evaluator.IsLastOfType- Class in org.jsoup.select
- Evaluator.IsNthChild- Class in org.jsoup.select
-
css-compatible Evaluator for :eq (css :nth-child)
- Evaluator.IsNthLastChild- Class in org.jsoup.select
-
css pseudo class :nth-last-child)
- Evaluator.IsNthLastOfType- Class in org.jsoup.select
- Evaluator.IsNthOfType- Class in org.jsoup.select
-
css pseudo class nth-of-type
- Evaluator.IsOnlyChild- Class in org.jsoup.select
- Evaluator.IsOnlyOfType- Class in org.jsoup.select
- Evaluator.IsRoot- Class in org.jsoup.select
-
css3 pseudo-class :root
- Evaluator.Matches- Class in org.jsoup.select
-
Evaluator for matching Element (and its descendants) text with regex
- Evaluator.MatchesOwn- Class in org.jsoup.select
-
Evaluator for matching Element's own text with regex
- Evaluator.MatchesWholeOwnText- Class in org.jsoup.select
-
Evaluator for matching Element's own whole text with regex.
- Evaluator.MatchesWholeText- Class in org.jsoup.select
-
Evaluator for matching Element (and its descendants) whole text with regex.
- Evaluator.MatchText- Class in org.jsoup.select
- Evaluator.Tag- Class in org.jsoup.select
-
Evaluator for tag name
- Evaluator.TagEndsWith- Class in org.jsoup.select
-
Evaluator for tag name that ends with suffix; used for *|el
- Evaluator.TagStartsWith- Class in org.jsoup.select
-
Evaluator for tag name that starts with prefix; used for ns|*
- execute()- Method in interface org.jsoup.Connection
-
Execute the request.
- execute()- Method in class org.jsoup.helper.HttpConnection
- expectFirst(String)- Method in class org.jsoup.nodes.Element
-
Just like
Element.selectFirst(
, but if there is no match, throws anString) IllegalArgumentException
. - expectFirst(String)- Method in class org.jsoup.parser.StreamParser
-
Just like
StreamParser.selectFirst(
, but if there is no match, throws anString) IllegalArgumentException
. - expectFirst(String)- Method in class org.jsoup.select.Elements
-
Just like
Elements.selectFirst(
, but if there is no match, throws anString) IllegalArgumentException
. - expectForm(String)- Method in class org.jsoup.nodes.Document
-
Selects the first
FormElement
in this document that matches the query. - expectNext(String)- Method in class org.jsoup.parser.StreamParser
-
Just like
StreamParser.selectFirst(
, but if there is no match, throws anString) IllegalArgumentException
. - extended- Enum constant in enum org.jsoup.nodes.Entities.EscapeMode
-
Complete HTML entities.
F
- factory- Variable in class org.jsoup.helper.W3CDom
- fail(String)- Static method in class org.jsoup.helper.Validate
-
Cause a failure.
- fail(String, Object...)- Static method in class org.jsoup.helper.Validate
-
Cause a failure.
- fillInStackTrace()- Method in exception org.jsoup.helper.ValidationException
- filter(NodeFilter)- Method in class org.jsoup.nodes.Element
- filter(NodeFilter)- Method in class org.jsoup.nodes.Node
-
Perform a depth-first filtered traversal through this node and its descendants.
- filter(NodeFilter)- Method in class org.jsoup.select.Elements
-
Perform a depth-first filtering on each of the selected elements.
- filter(NodeFilter, Node)- Static method in class org.jsoup.select.NodeTraversor
-
Run a depth-first filtered traversal of the root and all of its descendants.
- filter(NodeFilter, Elements)- Static method in class org.jsoup.select.NodeTraversor
-
Run a depth-first filtered traversal of each Element.
- findFirst(Evaluator, Element)- Static method in class org.jsoup.select.Collector
-
Finds the first Element that matches the Evaluator that descends from the root, and stops the query once that first match is found.
- findPrefix(String)- Static method in class org.jsoup.nodes.Entities
-
Finds the longest base named entity that is a prefix of the input.
- first()- Method in class org.jsoup.select.Elements
-
Get the first matched element.
- firstChild()- Method in class org.jsoup.nodes.Node
-
Gets the first child node of this node, or
null
if there is none. - firstElementChild()- Method in class org.jsoup.nodes.Element
-
Gets the first child of this Element that is an Element, or
null
if there is none. - firstElementSibling()- Method in class org.jsoup.nodes.Element
-
Gets the first Element sibling of this element.
- followRedirects()- Method in interface org.jsoup.Connection.Request
-
Get the current followRedirects configuration.
- followRedirects()- Method in class org.jsoup.helper.HttpConnection.Request
- followRedirects(boolean)- Method in interface org.jsoup.Connection
-
Configures the connection to (not) follow server redirects.
- followRedirects(boolean)- Method in interface org.jsoup.Connection.Request
-
Configures the request to (not) follow server redirects.
- followRedirects(boolean)- Method in class org.jsoup.helper.HttpConnection
- followRedirects(boolean)- Method in class org.jsoup.helper.HttpConnection.Request
- forEach(Consumer<? super Element>)- Method in class org.jsoup.nodes.Element
-
Perform the supplied action on this Element and each of its descendant Elements, during a depth-first traversal.
- forEachNode(Consumer<? super Node>)- Method in class org.jsoup.nodes.Element
- forEachNode(Consumer<? super Node>)- Method in class org.jsoup.nodes.Node
-
Perform the supplied action on this Node and each of its descendants, during a depth-first traversal.
- FORM_URL_ENCODED- Static variable in class org.jsoup.helper.HttpConnection
- formatAsBlock()- Method in class org.jsoup.parser.Tag
-
Deprecated.setting is only used within the Printer. Will be removed in 1.21.
- formData()- Method in class org.jsoup.nodes.FormElement
-
Get the data that this form submits.
- FormElement- Class in org.jsoup.nodes
-
An HTML Form Element provides ready access to the form fields/controls that are associated with it.
- FormElement(Tag, String, Attributes)- Constructor for class org.jsoup.nodes.FormElement
-
Create a new, standalone form element.
- forms()- Method in class org.jsoup.nodes.Document
-
Get each of the
<form>
elements contained in this document. - forms()- Method in class org.jsoup.select.Elements
-
Get the
FormElement
forms from the selected elements, if any. - FormSubmittable- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag's value will be included when submitting a form (e.g.
- from(Node)- Static method in class org.jsoup.nodes.NodeIterator
-
Create a NoteIterator that will iterate the supplied node, and all of its descendants.
- fromJsoup(Document)- Method in class org.jsoup.helper.W3CDom
-
Convert a jsoup Document to a W3C Document.
- fromJsoup(Element)- Method in class org.jsoup.helper.W3CDom
-
Convert a jsoup DOM to a W3C Document.
G
- get()- Method in interface org.jsoup.Connection
-
Execute the request as a GET, and parse the result.
- get()- Method in class org.jsoup.helper.HttpConnection
- get(String)- Method in class org.jsoup.nodes.Attributes
-
Get an attribute value by key.
- get(String, String)- Method in class org.jsoup.parser.TagSet
-
Get an existing Tag from this TagSet by tagName and namespace.
- GET- Enum constant in enum org.jsoup.Connection.Method
- getAllElements()- Method in class org.jsoup.nodes.Element
-
Find all elements under this element (including self, and children of children).
- getByName(String)- Static method in class org.jsoup.nodes.Entities
-
Get the character(s) represented by the named entity
- getCursorPos()- Method in class org.jsoup.parser.ParseError
-
Get the formatted line:column cursor position where the error occurred.
- getData()- Method in class org.jsoup.nodes.Comment
-
Get the contents of the comment.
- getElementById(String)- Method in class org.jsoup.nodes.Element
-
Find an element by ID, including or under this element.
- getElementsByAttribute(String)- Method in class org.jsoup.nodes.Element
-
Find elements that have a named attribute set.
- getElementsByAttributeStarting(String)- Method in class org.jsoup.nodes.Element
-
Find elements that have an attribute name starting with the supplied prefix.
- getElementsByAttributeValue(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that have an attribute with the specific value.
- getElementsByAttributeValueContaining(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that have attributes whose value contains the match string.
- getElementsByAttributeValueEnding(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that have attributes that end with the value suffix.
- getElementsByAttributeValueMatching(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that have attributes whose values match the supplied regular expression.
- getElementsByAttributeValueMatching(String, Pattern)- Method in class org.jsoup.nodes.Element
-
Find elements that have an attribute whose value matches the supplied regular expression.
- getElementsByAttributeValueNot(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that either do not have this attribute, or have it with a different value.
- getElementsByAttributeValueStarting(String, String)- Method in class org.jsoup.nodes.Element
-
Find elements that have attributes that start with the value prefix.
- getElementsByClass(String)- Method in class org.jsoup.nodes.Element
-
Find elements that have this class, including or under this element.
- getElementsByIndexEquals(int)- Method in class org.jsoup.nodes.Element
-
Find elements whose sibling index is equal to the supplied index.
- getElementsByIndexGreaterThan(int)- Method in class org.jsoup.nodes.Element
-
Find elements whose sibling index is greater than the supplied index.
- getElementsByIndexLessThan(int)- Method in class org.jsoup.nodes.Element
-
Find elements whose sibling index is less than the supplied index.
- getElementsByTag(String)- Method in class org.jsoup.nodes.Element
-
Finds elements, including and recursively under this element, with the specified tag name.
- getElementsContainingOwnText(String)- Method in class org.jsoup.nodes.Element
-
Find elements that directly contain the specified string.
- getElementsContainingText(String)- Method in class org.jsoup.nodes.Element
-
Find elements that contain the specified string.
- getElementsMatchingOwnText(String)- Method in class org.jsoup.nodes.Element
-
Find elements whose own text matches the supplied regular expression.
- getElementsMatchingOwnText(Pattern)- Method in class org.jsoup.nodes.Element
-
Find elements whose own text matches the supplied regular expression.
- getElementsMatchingText(String)- Method in class org.jsoup.nodes.Element
-
Find elements whose text matches the supplied regular expression.
- getElementsMatchingText(Pattern)- Method in class org.jsoup.nodes.Element
-
Find elements whose text matches the supplied regular expression.
- getEnforcedAttributes(String)- Method in class org.jsoup.safety.Safelist
-
Gets the Attributes that should be enforced for a given tag
- getErrorMessage()- Method in class org.jsoup.parser.ParseError
-
Retrieve the error message.
- getErrors()- Method in class org.jsoup.parser.Parser
-
Retrieve the parse errors, if any, from the last parse.
- getIgnoreCase(String)- Method in class org.jsoup.nodes.Attributes
-
Get an attribute's value by case-insensitive key
- getKey()- Method in class org.jsoup.nodes.Attribute
-
Get the attribute's key (aka name).
- getMimeType()- Method in exception org.jsoup.UnsupportedMimeTypeException
- getName()- Method in class org.jsoup.parser.Tag
-
Get this tag's name.
- getPosition()- Method in class org.jsoup.parser.ParseError
-
Retrieves the offset of the error.
- getPseudoClass()- Method in class org.jsoup.select.Evaluator.CssNthEvaluator
- getPseudoClass()- Method in class org.jsoup.select.Evaluator.IsNthChild
- getPseudoClass()- Method in class org.jsoup.select.Evaluator.IsNthLastChild
- getPseudoClass()- Method in class org.jsoup.select.Evaluator.IsNthLastOfType
- getPseudoClass()- Method in class org.jsoup.select.Evaluator.IsNthOfType
- getStatusCode()- Method in exception org.jsoup.HttpStatusException
- getTreeBuilder()- Method in class org.jsoup.parser.Parser
-
Get the TreeBuilder currently in use.
- getUrl()- Method in exception org.jsoup.HttpStatusException
- getUrl()- Method in exception org.jsoup.UnsupportedMimeTypeException
- getValidKey(String, Document.OutputSettings.Syntax)- Static method in class org.jsoup.nodes.Attribute
-
Get a valid attribute key for the given syntax.
- getValue()- Method in class org.jsoup.nodes.Attribute
-
Get the attribute value.
- getWholeData()- Method in class org.jsoup.nodes.DataNode
-
Get the data contents of this node.
- getWholeDeclaration()- Method in class org.jsoup.nodes.XmlDeclaration
-
Get the unencoded XML declaration.
- getWholeText()- Method in class org.jsoup.nodes.TextNode
-
Get the (unencoded) text of this text node, including any newlines and spaces present in the original.
H
- hasAttr(String)- Method in class org.jsoup.nodes.LeafNode
- hasAttr(String)- Method in class org.jsoup.nodes.Node
-
Test if this Node has an attribute.
- hasAttr(String)- Method in class org.jsoup.select.Elements
-
Checks if any of the matched elements have this attribute defined.
- hasAttributes()- Method in class org.jsoup.nodes.Element
- hasAttributes()- Method in class org.jsoup.nodes.LeafNode
- hasAttributes()- Method in class org.jsoup.nodes.Node
-
Check if this Node has an actual Attributes object.
- hasBody()- Method in enum org.jsoup.Connection.Method
-
Check if this HTTP method has/needs a request body
- hasChildNodes()- Method in class org.jsoup.nodes.Element
-
Internal test to check if a nodelist object has been created.
- hasClass(String)- Method in class org.jsoup.nodes.Element
-
Tests if this element has a class.
- hasClass(String)- Method in class org.jsoup.select.Elements
-
Determine if any of the matched elements have this class name set in their
class
attribute. - hasCookie(String)- Method in interface org.jsoup.Connection.Base
-
Check if a cookie is present
- hasCookie(String)- Method in class org.jsoup.helper.HttpConnection.Response
- hasDeclaredValue()- Method in class org.jsoup.nodes.Attribute
-
Check if this Attribute has a value.
- hasDeclaredValueForKey(String)- Method in class org.jsoup.nodes.Attributes
-
Check if these attributes contain an attribute with a value for this key.
- hasDeclaredValueForKeyIgnoreCase(String)- Method in class org.jsoup.nodes.Attributes
-
Check if these attributes contain an attribute with a value for this key.
- hashCode()- Method in class org.jsoup.nodes.Attribute
- hashCode()- Method in class org.jsoup.nodes.Attributes
-
Calculates the hashcode of these attributes, by iterating all attributes and summing their hashcodes.
- hashCode()- Method in class org.jsoup.nodes.Node
-
Provides a hashCode for this Node, based on its object identity.
- hashCode()- Method in class org.jsoup.nodes.Range.AttributeRange
- hashCode()- Method in class org.jsoup.nodes.Range
- hashCode()- Method in class org.jsoup.nodes.Range.Position
- hashCode()- Method in class org.jsoup.parser.Tag
- hashCode()- Method in class org.jsoup.parser.TagSet
- hasHeader(String)- Method in interface org.jsoup.Connection.Base
-
Check if a header is present
- hasHeader(String)- Method in class org.jsoup.helper.HttpConnection.Response
- hasHeaderWithValue(String, String)- Method in interface org.jsoup.Connection.Base
-
Check if a header is present, with the given value
- hasHeaderWithValue(String, String)- Method in class org.jsoup.helper.HttpConnection.Response
-
Test if the request has a header with this value (case-insensitive).
- hasInputStream()- Method in interface org.jsoup.Connection.KeyVal
-
Does this keyval have an input stream?
- hasInputStream()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- hasKey(String)- Method in class org.jsoup.nodes.Attributes
-
Tests if these attributes contain an attribute with this key.
- hasKeyIgnoreCase(String)- Method in class org.jsoup.nodes.Attributes
-
Tests if these attributes contain an attribute with this key.
- hasNext()- Method in class org.jsoup.nodes.NodeIterator
- hasParent()- Method in class org.jsoup.nodes.Node
-
Checks if this node has a parent.
- hasSameValue(Object)- Method in class org.jsoup.nodes.Node
-
Check if this node has the same content as another node.
- hasText()- Method in class org.jsoup.nodes.Element
-
Checks if the current element or any of its child elements contain non-whitespace text.
- hasText()- Method in class org.jsoup.select.Elements
-
Test if any matched Element has any text content, that is not just whitespace.
- head()- Method in class org.jsoup.nodes.Document
-
Get this document's
head
element. - head(Node, int)- Method in class org.jsoup.helper.W3CDom.W3CBuilder
- head(Node, int)- Method in interface org.jsoup.select.NodeFilter
-
Callback for when a node is first visited.
- head(Node, int)- Method in interface org.jsoup.select.NodeVisitor
-
Callback for when a node is first visited.
- HEAD- Enum constant in enum org.jsoup.Connection.Method
- header(String)- Method in interface org.jsoup.Connection.Base
-
Get the value of a header.
- header(String)- Method in class org.jsoup.helper.HttpConnection.Response
- header(String, String)- Method in interface org.jsoup.Connection.Base
-
Set a header.
- header(String, String)- Method in interface org.jsoup.Connection
-
Set a request header.
- header(String, String)- Method in class org.jsoup.helper.HttpConnection.Response
- header(String, String)- Method in class org.jsoup.helper.HttpConnection
- headers()- Method in interface org.jsoup.Connection.Base
-
Retrieve all of the request/response header names and corresponding values as a map.
- headers()- Method in class org.jsoup.helper.HttpConnection.Response
- headers(String)- Method in interface org.jsoup.Connection.Base
-
Get the values of a header.
- headers(String)- Method in class org.jsoup.helper.HttpConnection.Response
- headers(Map<String, String>)- Method in interface org.jsoup.Connection
-
Sets each of the supplied headers on the request.
- headers(Map<String, String>)- Method in class org.jsoup.helper.HttpConnection
- html- Enum constant in enum org.jsoup.nodes.Document.OutputSettings.Syntax
- html()- Method in class org.jsoup.nodes.Attribute
-
Get the HTML representation of this attribute; e.g.
- html()- Method in class org.jsoup.nodes.Attributes
-
Get the HTML representation of these attributes.
- html()- Method in class org.jsoup.nodes.Element
-
Retrieves the element's inner HTML.
- html()- Method in class org.jsoup.select.Elements
-
Get the combined inner HTML of all matched elements.
- html(Appendable, Document.OutputSettings)- Method in class org.jsoup.nodes.Attribute
- html(String)- Method in class org.jsoup.nodes.Element
-
Set this element's inner HTML.
- html(String)- Method in class org.jsoup.select.Elements
-
Set the inner HTML of each matched element.
- html(String, String, Appendable, Document.OutputSettings)- Static method in class org.jsoup.nodes.Attribute
- html(T)- Method in class org.jsoup.nodes.Element
- html(T)- Method in class org.jsoup.nodes.Node
-
Write this node and its children to the given
Appendable
. - Html()- Static method in class org.jsoup.parser.TagSet
-
Returns a mutable copy of the default HTML tag set.
- htmlDefault- Static variable in class org.jsoup.parser.ParseSettings
-
HTML default settings: both tag and attribute names are lower-cased during parsing.
- htmlParser()- Static method in class org.jsoup.parser.Parser
-
Create a new HTML parser.
- HtmlTreeBuilder- Class in org.jsoup.parser
-
HTML Tree Builder; creates a DOM from Tokens.
- HtmlTreeBuilder()- Constructor for class org.jsoup.parser.HtmlTreeBuilder
- HttpConnection- Class in org.jsoup.helper
-
Implementation of
Connection
. - HttpConnection()- Constructor for class org.jsoup.helper.HttpConnection
-
Create a new, empty HttpConnection.
- HttpConnection.KeyVal- Class in org.jsoup.helper
- HttpConnection.Request- Class in org.jsoup.helper
- HttpConnection.Response- Class in org.jsoup.helper
- HttpStatusException- Exception in org.jsoup
-
Signals that a HTTP request resulted in a not OK HTTP response.
- HttpStatusException(String, int, String)- Constructor for exception org.jsoup.HttpStatusException
I
- id()- Method in class org.jsoup.nodes.Element
-
Get the
id
attribute of this element. - id(String)- Method in class org.jsoup.nodes.Element
-
Set the
id
attribute of this element. - Id(String)- Constructor for class org.jsoup.select.Evaluator.Id
- ignoreContentType()- Method in interface org.jsoup.Connection.Request
-
Get the current ignoreContentType configuration.
- ignoreContentType()- Method in class org.jsoup.helper.HttpConnection.Request
- ignoreContentType(boolean)- Method in interface org.jsoup.Connection
-
Ignore the document's Content-Type when parsing the response.
- ignoreContentType(boolean)- Method in interface org.jsoup.Connection.Request
-
Configures the request to ignore the Content-Type of the response.
- ignoreContentType(boolean)- Method in class org.jsoup.helper.HttpConnection
- ignoreContentType(boolean)- Method in class org.jsoup.helper.HttpConnection.Request
- ignoreHttpErrors()- Method in interface org.jsoup.Connection.Request
-
Get the current ignoreHttpErrors configuration.
- ignoreHttpErrors()- Method in class org.jsoup.helper.HttpConnection.Request
- ignoreHttpErrors(boolean)- Method in interface org.jsoup.Connection
-
Configures the connection to not throw exceptions when an HTTP error occurs. (4xx - 5xx, e.g. 404 or 500).
- ignoreHttpErrors(boolean)- Method in interface org.jsoup.Connection.Request
-
Configures the request to ignore HTTP errors in the response.
- ignoreHttpErrors(boolean)- Method in class org.jsoup.helper.HttpConnection
- ignoreHttpErrors(boolean)- Method in class org.jsoup.helper.HttpConnection.Request
- indent(Appendable, int, Document.OutputSettings)- Method in class org.jsoup.nodes.Node
- indentAmount()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get the current tag indent amount, used when pretty printing.
- indentAmount(int)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Set the indent amount for pretty printing
- IndexEquals(int)- Constructor for class org.jsoup.select.Evaluator.IndexEquals
- IndexEvaluator(int)- Constructor for class org.jsoup.select.Evaluator.IndexEvaluator
- IndexGreaterThan(int)- Constructor for class org.jsoup.select.Evaluator.IndexGreaterThan
- IndexLessThan(int)- Constructor for class org.jsoup.select.Evaluator.IndexLessThan
- initialiseParse(Reader, String, Parser)- Method in class org.jsoup.parser.HtmlTreeBuilder
- initialiseParse(Reader, String, Parser)- Method in class org.jsoup.parser.XmlTreeBuilder
- InlineContainer- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is a block tag that will only hold inline tags (e.g.
- inputStream()- Method in interface org.jsoup.Connection.KeyVal
-
Get the input stream associated with this keyval, if any
- inputStream()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- inputStream(InputStream)- Method in interface org.jsoup.Connection.KeyVal
-
Add or update an input stream to this keyVal
- inputStream(InputStream)- Method in class org.jsoup.helper.HttpConnection.KeyVal
- insertChildren(int, Collection<? extends Node>)- Method in class org.jsoup.nodes.Element
-
Inserts the given child nodes into this element at the specified index.
- insertChildren(int, Node...)- Method in class org.jsoup.nodes.Element
-
Inserts the given child nodes into this element at the specified index.
- is(int)- Method in class org.jsoup.parser.Tag
-
Test if an option is set on this tag.
- is(String)- Method in class org.jsoup.nodes.Element
-
Checks if this element matches the given
Selector
CSS query. - is(String)- Method in class org.jsoup.select.Elements
-
Test if any of the matched elements match the supplied query.
- is(Evaluator)- Method in class org.jsoup.nodes.Element
-
Check if this element matches the given evaluator.
- isBaseNamedEntity(String)- Static method in class org.jsoup.nodes.Entities
-
Check if the input is a known named entity in the base entity set.
- isBlank()- Method in class org.jsoup.nodes.TextNode
-
Test if this text node is blank -- that is, empty or only whitespace (including newlines).
- isBlock()- Method in class org.jsoup.nodes.Element
-
Test if this element is a block-level element.
- isBlock()- Method in class org.jsoup.parser.Tag
-
Gets if this is a block tag.
- isBooleanAttribute(String)- Static method in class org.jsoup.nodes.Attribute
-
Checks if this attribute name is defined as a boolean attribute in HTML5
- isContentForTagData(String)- Method in class org.jsoup.parser.HtmlTreeBuilder
-
Deprecated.this unused internal method will be removed.
- isContentForTagData(String)- Method in class org.jsoup.parser.Parser
-
Deprecated.internal method, no longer used, and will be removed in 1.12.1.
- isDataAttribute()- Method in class org.jsoup.nodes.Attribute
- isDataAttribute(String)- Static method in class org.jsoup.nodes.Attribute
- isEmpty()- Method in class org.jsoup.nodes.Attributes
-
Test if this Attributes list is empty (size==0).
- isEmpty()- Method in class org.jsoup.parser.CharacterReader
-
Tests if all the content has been read.
- isEmpty()- Method in class org.jsoup.parser.Tag
-
Get if this is void (aka empty) tag.
- isEmpty()- Method in class org.jsoup.parser.TokenQueue
-
Is the queue empty?
- IsEmpty()- Constructor for class org.jsoup.select.Evaluator.IsEmpty
- isFalse(boolean)- Static method in class org.jsoup.helper.Validate
-
Validates that the value is false
- isFalse(boolean, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the value is false
- IsFirstChild()- Constructor for class org.jsoup.select.Evaluator.IsFirstChild
- IsFirstOfType()- Constructor for class org.jsoup.select.Evaluator.IsFirstOfType
- isFormListed()- Method in class org.jsoup.parser.Tag
-
Deprecated.this method is internal to HtmlTreeBuilder only, and will be removed in 1.21.1.
- isFormSubmittable()- Method in class org.jsoup.parser.Tag
-
Get if this tag represents an element that should be submitted with a form.
- isImplicit()- Method in class org.jsoup.nodes.Range
-
Checks if the range represents a node that was implicitly created / closed.
- isInline()- Method in class org.jsoup.parser.Tag
-
Gets if this tag is an inline tag.
- isKnownTag()- Method in class org.jsoup.parser.Tag
-
Get if this is a pre-defined tag in the TagSet, or was auto created on parsing.
- isKnownTag(String)- Static method in class org.jsoup.parser.Tag
-
Check if this tag name is a known HTML tag.
- IsLastChild()- Constructor for class org.jsoup.select.Evaluator.IsLastChild
- IsLastOfType()- Constructor for class org.jsoup.select.Evaluator.IsLastOfType
- isNamedEntity(String)- Static method in class org.jsoup.nodes.Entities
-
Check if the input is a known named entity
- IsNthChild(int, int)- Constructor for class org.jsoup.select.Evaluator.IsNthChild
- IsNthLastChild(int, int)- Constructor for class org.jsoup.select.Evaluator.IsNthLastChild
- IsNthLastOfType(int, int)- Constructor for class org.jsoup.select.Evaluator.IsNthLastOfType
- IsNthOfType(int, int)- Constructor for class org.jsoup.select.Evaluator.IsNthOfType
- IsOnlyChild()- Constructor for class org.jsoup.select.Evaluator.IsOnlyChild
- IsOnlyOfType()- Constructor for class org.jsoup.select.Evaluator.IsOnlyOfType
- isProxy()- Method in class org.jsoup.helper.RequestAuthenticator.Context
-
Gets if the authentication request is for a proxy.
- IsRoot()- Constructor for class org.jsoup.select.Evaluator.IsRoot
- isSafeAttribute(String, Element, Attribute)- Method in class org.jsoup.safety.Safelist
-
Test if the supplied attribute is allowed by this safelist for this tag.
- isSafeTag(String)- Method in class org.jsoup.safety.Safelist
-
Test if the supplied tag is allowed by this safelist.
- isSelfClosing()- Method in class org.jsoup.parser.Tag
-
Get if this tag is self-closing.
- isServer()- Method in class org.jsoup.helper.RequestAuthenticator.Context
-
Gets if the authentication request is for a server.
- isTracked()- Method in class org.jsoup.nodes.Range
-
Test if this source range was tracked during parsing.
- isTracked()- Method in class org.jsoup.nodes.Range.Position
-
Test if this position was tracked during parsing.
- isTrackErrors()- Method in class org.jsoup.parser.Parser
-
Check if parse error tracking is enabled.
- isTrackNewlines()- Method in class org.jsoup.parser.CharacterReader
-
Check if the tracking of newlines is enabled.
- isTrackPosition()- Method in class org.jsoup.parser.Parser
-
Test if position tracking is enabled.
- isTrue(boolean)- Static method in class org.jsoup.helper.Validate
-
Validates that the value is true
- isTrue(boolean, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the value is true
- isValid(String, Safelist)- Static method in class org.jsoup.Jsoup
-
Test if the input body HTML has only tags and attributes allowed by the Safelist.
- isValid(Document)- Method in class org.jsoup.safety.Cleaner
-
Determines if the input document's body is valid, against the safelist.
- isValidBodyHtml(String)- Method in class org.jsoup.safety.Cleaner
-
Determines if the input document's body HTML is valid, against the safelist.
- isXmlDeclaration()- Method in class org.jsoup.nodes.Comment
-
Check if this comment looks like an XML Declaration.
- iterator()- Method in class org.jsoup.nodes.Attributes
- iterator()- Method in class org.jsoup.nodes.Element
-
Returns an Iterator that iterates this Element and each of its descendant Elements, in document order.
- iterator()- Method in class org.jsoup.parser.StreamParser
-
Returns an
Iterator
ofElement
s, with the input being parsed as each element is consumed.
J
K
- key()- Method in interface org.jsoup.Connection.KeyVal
-
Get the key of a keyval
- key()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- key(String)- Method in interface org.jsoup.Connection.KeyVal
-
Update the key of a keyval
- key(String)- Method in class org.jsoup.helper.HttpConnection.KeyVal
- Known- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is known (specifically defined).
L
- last()- Method in class org.jsoup.select.Elements
-
Get the last matched element.
- lastChild()- Method in class org.jsoup.nodes.Node
-
Gets the last child node of this node, or
null
if there is none. - lastElementChild()- Method in class org.jsoup.nodes.Element
-
Gets the last child of this Element that is an Element, or @{code null} if there is none.
- lastElementSibling()- Method in class org.jsoup.nodes.Element
-
Gets the last element sibling of this element.
- LeafNode- Class in org.jsoup.nodes
-
A node that does not hold any children.
- LeafNode()- Constructor for class org.jsoup.nodes.LeafNode
- LeafNode(String)- Constructor for class org.jsoup.nodes.LeafNode
- limitedQuirks- Enum constant in enum org.jsoup.nodes.Document.QuirksMode
- lineNumber()- Method in class org.jsoup.nodes.Range.Position
-
Gets the line number (1-based) of the original input source that this Position was read at.
- lineNumber()- Method in class org.jsoup.parser.CharacterReader
-
Get the current line number (that the reader has consumed to).
- load(File, String, String)- Static method in class org.jsoup.helper.DataUtil
-
Loads and parses a file to a Document, with the HtmlParser.
- load(File, String, String, Parser)- Static method in class org.jsoup.helper.DataUtil
-
Loads and parses a file to a Document.
- load(InputStream, String, String)- Static method in class org.jsoup.helper.DataUtil
-
Parses a Document from an input steam.
- load(InputStream, String, String, Parser)- Static method in class org.jsoup.helper.DataUtil
-
Parses a Document from an input steam, using the provided Parser.
- load(Path, String, String)- Static method in class org.jsoup.helper.DataUtil
-
Loads and parses a file to a Document, with the HtmlParser.
- load(Path, String, String, Parser)- Static method in class org.jsoup.helper.DataUtil
-
Loads and parses a file to a Document.
- localName()- Method in class org.jsoup.nodes.Attribute
-
Get this attribute's local name.
- localName()- Method in class org.jsoup.parser.Tag
-
Get this tag's local name.
- location()- Method in class org.jsoup.nodes.Document
-
Get the URL this Document was parsed from.
M
- matchChomp(char)- Method in class org.jsoup.parser.TokenQueue
-
If the queue matches the supplied (case-sensitive) character, consume it off the queue.
- matchChomp(String)- Method in class org.jsoup.parser.TokenQueue
-
If the queue case-insensitively matches the supplied string, consume it off the queue.
- matches(char)- Method in class org.jsoup.parser.TokenQueue
-
Tests if the next character on the queue matches the character, case-sensitively.
- matches(String)- Method in class org.jsoup.parser.TokenQueue
-
Tests if the next characters on the queue match the sequence, case-insensitively.
- matches(Element, Element)- Method in class org.jsoup.select.CombiningEvaluator.And
- matches(Element, Element)- Method in class org.jsoup.select.CombiningEvaluator.Or
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AllElements
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.Attribute
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeStarting
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValue
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValueContaining
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValueEnding
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValueMatching
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValueNot
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.AttributeWithValueStarting
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.Class
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.ContainsData
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.ContainsOwnText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.ContainsText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.ContainsWholeOwnText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.ContainsWholeText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.CssNthEvaluator
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.Id
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IndexEquals
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IndexGreaterThan
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IndexLessThan
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsEmpty
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsFirstChild
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsLastChild
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsOnlyChild
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsOnlyOfType
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.IsRoot
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator
-
Test if the element meets the evaluator's requirements.
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.Matches
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.MatchesOwn
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.MatchesWholeOwnText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.MatchesWholeText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.MatchText
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.Tag
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.TagEndsWith
- matches(Element, Element)- Method in class org.jsoup.select.Evaluator.TagStartsWith
- Matches(Pattern)- Constructor for class org.jsoup.select.Evaluator.Matches
- matchesAny(char...)- Method in class org.jsoup.parser.TokenQueue
-
Tests if the next characters match any of the sequences, case-sensitively.
- matchesAny(String...)- Method in class org.jsoup.parser.TokenQueue
-
Deprecated.will be removed in 1.21.1.
- MatchesOwn(Pattern)- Constructor for class org.jsoup.select.Evaluator.MatchesOwn
- matchesWhitespace()- Method in class org.jsoup.parser.TokenQueue
-
Tests if queue starts with a whitespace character.
- MatchesWholeOwnText(Pattern)- Constructor for class org.jsoup.select.Evaluator.MatchesWholeOwnText
- MatchesWholeText(Pattern)- Constructor for class org.jsoup.select.Evaluator.MatchesWholeText
- matchesWord()- Method in class org.jsoup.parser.TokenQueue
-
Test if the queue matches a tag word character (letter or digit).
- MatchText()- Constructor for class org.jsoup.select.Evaluator.MatchText
- maxBodySize()- Method in interface org.jsoup.Connection.Request
-
Get the maximum body size, in bytes.
- maxBodySize()- Method in class org.jsoup.helper.HttpConnection.Request
- maxBodySize(int)- Method in interface org.jsoup.Connection
-
Set the maximum bytes to read from the (uncompressed) connection into the body, before the connection is closed, and the input truncated (i.e. the body content will be trimmed).
- maxBodySize(int)- Method in interface org.jsoup.Connection.Request
-
Update the maximum body size, in bytes.
- maxBodySize(int)- Method in class org.jsoup.helper.HttpConnection
- maxBodySize(int)- Method in class org.jsoup.helper.HttpConnection.Request
- maxPaddingWidth()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get the current max padding amount, used when pretty printing so very deeply nested nodes don't get insane padding amounts.
- maxPaddingWidth(int)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Set the max padding amount for pretty printing so very deeply nested nodes don't get insane padding amounts.
- MaxScopeSearchDepth- Static variable in class org.jsoup.parser.HtmlTreeBuilder
- method()- Method in interface org.jsoup.Connection.Base
-
Get the request method, which defaults to
GET
- method()- Method in class org.jsoup.helper.HttpConnection.Response
- method(Connection.Method)- Method in interface org.jsoup.Connection.Base
-
Set the request method
- method(Connection.Method)- Method in interface org.jsoup.Connection
-
Set the request method to use, GET or POST.
- method(Connection.Method)- Method in class org.jsoup.helper.HttpConnection.Response
- method(Connection.Method)- Method in class org.jsoup.helper.HttpConnection
- multiHeaders()- Method in interface org.jsoup.Connection.Base
-
Retreive all of the headers, keyed by the header name, and with a list of values per header.
- multiHeaders()- Method in class org.jsoup.helper.HttpConnection.Response
- MULTIPART_FORM_DATA- Static variable in class org.jsoup.helper.HttpConnection
N
- name()- Method in class org.jsoup.nodes.DocumentType
-
Get this doctype's name (when set, or empty string)
- name()- Method in class org.jsoup.nodes.XmlDeclaration
-
Get the name of this declaration.
- name()- Method in class org.jsoup.parser.Tag
-
Get this tag's name.
- name(String)- Method in class org.jsoup.parser.Tag
-
Change the tag's name.
- nameIs(String)- Method in class org.jsoup.nodes.Node
-
Test if this node has the specified normalized name, in any namespace.
- nameRange()- Method in class org.jsoup.nodes.Range.AttributeRange
-
Get the source range for the attribute's name.
- namespace()- Method in class org.jsoup.nodes.Attribute
-
Get this attribute's namespace URI, if the attribute was prefixed with a defined namespace name.
- namespace()- Method in class org.jsoup.parser.Tag
-
Get this tag's namespace.
- namespace(String)- Method in class org.jsoup.parser.Tag
-
Set the tag's namespace.
- namespaceAware()- Method in class org.jsoup.helper.W3CDom
-
Returns if this W3C DOM is namespace aware.
- namespaceAware(boolean)- Method in class org.jsoup.helper.W3CDom
-
Update the namespace aware setting.
- NamespaceHtml- Static variable in class org.jsoup.parser.Parser
- NamespaceMathml- Static variable in class org.jsoup.parser.Parser
- NamespaceSvg- Static variable in class org.jsoup.parser.Parser
- NamespaceXml- Static variable in class org.jsoup.parser.Parser
- newInstance()- Method in class org.jsoup.parser.Parser
-
Creates a new Parser as a deep copy of this; including initializing a new TreeBuilder.
- newRequest()- Method in interface org.jsoup.Connection
-
Creates a new request, using this Connection as the session-state and to initialize the connection settings (which may then be independently changed on the returned
Connection.Request
object). - newRequest()- Method in class org.jsoup.helper.HttpConnection
- newRequest(String)- Method in interface org.jsoup.Connection
-
Creates a new request, using this Connection as the session-state and to initialize the connection settings (which may then be independently changed on the returned
Connection.Request
object). - newRequest(URL)- Method in interface org.jsoup.Connection
-
Creates a new request, using this Connection as the session-state and to initialize the connection settings (which may then be independently changed on the returned
Connection.Request
object). - newSession()- Static method in class org.jsoup.Jsoup
-
Creates a new
Connection
to use as a session. - next()- Method in class org.jsoup.nodes.NodeIterator
- next()- Method in class org.jsoup.select.Elements
-
Get the immediate next element sibling of each element in this list.
- next(String)- Method in class org.jsoup.select.Elements
-
Get the immediate next element sibling of each element in this list, filtered by the query.
- nextAll()- Method in class org.jsoup.select.Elements
-
Get each of the following element siblings of each element in this list.
- nextAll(String)- Method in class org.jsoup.select.Elements
-
Get each of the following element siblings of each element in this list, that match the query.
- nextElementSibling()- Method in class org.jsoup.nodes.Element
-
Gets the next sibling element of this element.
- nextElementSiblings()- Method in class org.jsoup.nodes.Element
-
Get each of the sibling elements that come after this element.
- nextSibling()- Method in class org.jsoup.nodes.Node
-
Get this node's next sibling.
- Node- Class in org.jsoup.nodes
-
The base, abstract Node model.
- Node()- Constructor for class org.jsoup.nodes.Node
-
Default constructor.
- NodeFilter- Interface in org.jsoup.select
-
Node filter interface.
- NodeFilter.FilterResult- Enum in org.jsoup.select
-
Filter decision.
- NodeIterator<T extends Node> - Class in org.jsoup.nodes
-
Iterate through a Node and its tree of descendants, in document order, and returns nodes of the specified type.
- NodeIterator(Node, Class<T>)- Constructor for class org.jsoup.nodes.NodeIterator
-
Create a NoteIterator that will iterate the supplied node, and all of its descendants.
- nodeName()- Method in class org.jsoup.nodes.CDataNode
- nodeName()- Method in class org.jsoup.nodes.Comment
- nodeName()- Method in class org.jsoup.nodes.DataNode
- nodeName()- Method in class org.jsoup.nodes.Document
- nodeName()- Method in class org.jsoup.nodes.DocumentType
- nodeName()- Method in class org.jsoup.nodes.Element
- nodeName()- Method in class org.jsoup.nodes.Node
-
Get the node name of this node.
- nodeName()- Method in class org.jsoup.nodes.TextNode
- nodeName()- Method in class org.jsoup.nodes.XmlDeclaration
- nodeStream()- Method in class org.jsoup.nodes.Node
-
Returns a Stream of this Node and all of its descendant Nodes.
- nodeStream(Class<T>)- Method in class org.jsoup.nodes.Node
-
Returns a Stream of this and descendant nodes, containing only nodes of the specified type.
- NodeTraversor- Class in org.jsoup.select
-
A depth-first node traversor.
- NodeTraversor()- Constructor for class org.jsoup.select.NodeTraversor
- NodeVisitor- Interface in org.jsoup.select
-
Node visitor interface.
- none()- Static method in class org.jsoup.safety.Safelist
-
This safelist allows only text nodes: any HTML Element or any Node other than a TextNode will be removed.
- noNullElements(Object[])- Static method in class org.jsoup.helper.Validate
-
Validates that the array contains no null elements
- noNullElements(Object[], String)- Static method in class org.jsoup.helper.Validate
-
Validates that the array contains no null elements
- noQuirks- Enum constant in enum org.jsoup.nodes.Document.QuirksMode
- normalize()- Method in class org.jsoup.nodes.Attributes
-
Internal method.
- normalizeAttribute(String)- Method in class org.jsoup.parser.ParseSettings
-
Normalizes an attribute according to the case preservation setting.
- normalizeTag(String)- Method in class org.jsoup.parser.ParseSettings
-
Normalizes a tag name according to the case preservation setting.
- normalName()- Method in class org.jsoup.nodes.Element
-
Get the normalized name of this Element's tag.
- normalName()- Method in class org.jsoup.nodes.Node
-
Get the normalized name of this node.
- normalName()- Method in class org.jsoup.parser.Tag
-
Get this tag's normalized (lowercased) name.
- not(String)- Method in class org.jsoup.select.Elements
-
Remove elements from this list that match the
Selector
query. - notEmpty(String)- Static method in class org.jsoup.helper.Validate
-
Validates that the string is not null and is not empty
- notEmpty(String, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the string is not null and is not empty
- notEmptyParam(String, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the string parameter is not null and is not empty
- notNull(Object)- Static method in class org.jsoup.helper.Validate
-
Validates that the object is not null
- notNull(Object, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the object is not null
- notNullParam(Object, String)- Static method in class org.jsoup.helper.Validate
-
Validates that the parameter is not null
- noTracking()- Static method in class org.jsoup.parser.ParseErrorList
O
- onContentsChanged()- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- onProgress(int, int, float, ProgressContext)- Method in interface org.jsoup.Progress
-
Called to report progress.
- onResponseProgress(Progress<Connection.Response>)- Method in interface org.jsoup.Connection
-
Set the response progress handler, which will be called periodically as the response body is downloaded.
- onResponseProgress(Progress<Connection.Response>)- Method in class org.jsoup.helper.HttpConnection
- OPTIONS- Enum constant in enum org.jsoup.Connection.Method
- Or(Collection<Evaluator>)- Constructor for class org.jsoup.select.CombiningEvaluator.Or
-
Create a new Or evaluator.
- org.jsoup- package org.jsoup
-
Contains the main
Jsoup
class, which provides convenient static access to the jsoup functionality. - org.jsoup.helper- package org.jsoup.helper
-
Package containing classes supporting the core jsoup code.
- org.jsoup.nodes- package org.jsoup.nodes
-
HTML document structure nodes.
- org.jsoup.parser- package org.jsoup.parser
-
Contains the HTML parser, tag specifications, and HTML tokeniser.
- org.jsoup.safety- package org.jsoup.safety
-
Contains the jsoup HTML cleaner, and safelist definitions.
- org.jsoup.select- package org.jsoup.select
-
Packages to support the CSS-style element selector.
- outerHtml()- Method in class org.jsoup.nodes.Document
- outerHtml()- Method in class org.jsoup.nodes.Node
-
Get the outer HTML of this node.
- outerHtml()- Method in class org.jsoup.select.Elements
-
Get the combined outer HTML of all matched elements.
- outerHtml(Appendable)- Method in class org.jsoup.nodes.Node
- outline()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get if outline mode is enabled.
- outline(boolean)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Enable or disable HTML outline mode.
- OutputHtml()- Static method in class org.jsoup.helper.W3CDom
-
Canned default for HTML output.
- outputSettings()- Method in class org.jsoup.nodes.Document
-
Get the document's current output settings.
- outputSettings(Document.OutputSettings)- Method in class org.jsoup.nodes.Document
-
Set the document's output settings.
- OutputSettings()- Constructor for class org.jsoup.nodes.Document.OutputSettings
-
Create a new OutputSettings object, with the default settings (UTF-8, HTML, EscapeMode.base, pretty-printing, indent amount of 1).
- OutputXml()- Static method in class org.jsoup.helper.W3CDom
-
Canned default for XML output.
- ownerDocument()- Method in class org.jsoup.nodes.Node
-
Gets the Document associated with this Node.
- ownText()- Method in class org.jsoup.nodes.Element
-
Gets the (normalized) text owned by this element only; does not get the combined text of all children.
P
- parent()- Method in class org.jsoup.nodes.Element
- parent()- Method in class org.jsoup.nodes.Node
-
Gets this node's parent node.
- parentElementIs(String, String)- Method in class org.jsoup.nodes.Node
-
Test if this node's parent is an Element with the specified normalized name and namespace.
- parentNameIs(String)- Method in class org.jsoup.nodes.Node
-
Test if this node's parent has the specified normalized name.
- parentNode()- Method in class org.jsoup.nodes.Node
-
Gets this node's parent node.
- parents()- Method in class org.jsoup.nodes.Element
-
Get this element's parent and ancestors, up to the document root.
- parents()- Method in class org.jsoup.select.Elements
-
Get all of the parents and ancestor elements of the matched elements.
- parse()- Method in interface org.jsoup.Connection.Response
-
Read and parse the body of the response as a Document.
- parse()- Method in class org.jsoup.helper.HttpConnection.Response
- parse(File)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(File, String)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(File, String, String)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(File, String, String, Parser)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(InputStream, String, String)- Static method in class org.jsoup.Jsoup
-
Read an input stream, and parse it to a Document.
- parse(InputStream, String, String, Parser)- Static method in class org.jsoup.Jsoup
-
Read an input stream, and parse it to a Document.
- parse(Reader, String)- Method in class org.jsoup.parser.StreamParser
-
Provide the input for a Document parse.
- parse(String)- Static method in class org.jsoup.Jsoup
-
Parse HTML into a Document.
- parse(String)- Static method in class org.jsoup.select.QueryParser
-
Parse a CSS query into an Evaluator.
- parse(String, String)- Static method in class org.jsoup.Jsoup
-
Parse HTML into a Document.
- parse(String, String)- Static method in class org.jsoup.parser.Parser
-
Parse HTML into a Document.
- parse(String, String)- Method in class org.jsoup.parser.StreamParser
-
Provide the input for a Document parse.
- parse(String, String, Parser)- Static method in class org.jsoup.Jsoup
-
Parse HTML into a Document, using the provided Parser.
- parse(String, Parser)- Static method in class org.jsoup.Jsoup
-
Parse HTML into a Document, using the provided Parser.
- parse(URL, int)- Static method in class org.jsoup.Jsoup
-
Fetch a URL, and parse it as HTML.
- parse(Path)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(Path, String)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(Path, String, String)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parse(Path, String, String, Parser)- Static method in class org.jsoup.Jsoup
-
Parse the contents of a file as HTML.
- parseBodyFragment(String)- Static method in class org.jsoup.Jsoup
-
Parse a fragment of HTML, with the assumption that it forms the
body
of the HTML. - parseBodyFragment(String, String)- Static method in class org.jsoup.Jsoup
-
Parse a fragment of HTML, with the assumption that it forms the
body
of the HTML. - parseBodyFragment(String, String)- Static method in class org.jsoup.parser.Parser
-
Parse a fragment of HTML into the
body
of a Document. - ParseError- Class in org.jsoup.parser
-
A Parse Error records an error in the input HTML that occurs in either the tokenisation or the tree building phase.
- ParseErrorList- Class in org.jsoup.parser
-
A container for ParseErrors.
- parseFragment(Reader, Element, String)- Method in class org.jsoup.parser.StreamParser
-
Provide the input for a fragment parse.
- parseFragment(String, Element, String)- Method in class org.jsoup.parser.StreamParser
-
Provide the input for a fragment parse.
- parseFragment(String, Element, String)- Static method in class org.jsoup.parser.Parser
-
Parse a fragment of HTML into a list of nodes.
- parseFragment(String, Element, String, ParseErrorList)- Static method in class org.jsoup.parser.Parser
-
Parse a fragment of HTML into a list of nodes.
- parseFragmentInput(Reader, Element, String)- Method in class org.jsoup.parser.Parser
- parseFragmentInput(String, Element, String)- Method in class org.jsoup.parser.Parser
- parseInput(Reader, String)- Method in class org.jsoup.parser.Parser
- parseInput(String, String)- Method in class org.jsoup.parser.Parser
- parser- Variable in class org.jsoup.parser.HtmlTreeBuilder
- parser()- Method in interface org.jsoup.Connection.Request
-
Get the current parser to use when parsing the document.
- parser()- Method in class org.jsoup.helper.HttpConnection.Request
- parser()- Method in class org.jsoup.nodes.Document
-
Get the parser that was used to parse this document.
- parser(Parser)- Method in interface org.jsoup.Connection
-
Provide a specific parser to use when parsing the response to a Document.
- parser(Parser)- Method in interface org.jsoup.Connection.Request
-
Specify the parser to use when parsing the document.
- parser(Parser)- Method in class org.jsoup.helper.HttpConnection
- parser(Parser)- Method in class org.jsoup.helper.HttpConnection.Request
- parser(Parser)- Method in class org.jsoup.nodes.Document
-
Set the parser used to create this document.
- Parser- Class in org.jsoup.parser
-
Parses HTML or XML into a
Document
. - Parser(TreeBuilder)- Constructor for class org.jsoup.parser.Parser
-
Create a new Parser, using the specified TreeBuilder
- ParseSettings- Class in org.jsoup.parser
-
Controls parser case settings, to optionally preserve tag and/or attribute name case.
- ParseSettings(boolean, boolean)- Constructor for class org.jsoup.parser.ParseSettings
-
Define parse settings.
- parseXmlFragment(String, String)- Static method in class org.jsoup.parser.Parser
-
Parse a fragment of XML into a list of nodes.
- PATCH- Enum constant in enum org.jsoup.Connection.Method
-
Note that unfortunately, PATCH is not supported in many JDKs.
- popStackToClose(Token.EndTag)- Method in class org.jsoup.parser.XmlTreeBuilder
-
If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence.
- pos()- Method in class org.jsoup.nodes.Range.Position
-
Gets the position index (0-based) of the original input source that this Position was read at.
- pos()- Method in class org.jsoup.parser.CharacterReader
-
Gets the position currently read to in the content.
- Position(int, int, int)- Constructor for class org.jsoup.nodes.Range.Position
-
Create a new Position object.
- post()- Method in interface org.jsoup.Connection
-
Execute the request as a POST, and parse the result.
- post()- Method in class org.jsoup.helper.HttpConnection
- POST- Enum constant in enum org.jsoup.Connection.Method
- postDataCharset()- Method in interface org.jsoup.Connection.Request
-
Gets the post data character set for x-www-form-urlencoded post data
- postDataCharset()- Method in class org.jsoup.helper.HttpConnection.Request
- postDataCharset(String)- Method in interface org.jsoup.Connection
-
Set the character-set used to encode the request body.
- postDataCharset(String)- Method in interface org.jsoup.Connection.Request
-
Sets the post data character set for x-www-form-urlencoded post data
- postDataCharset(String)- Method in class org.jsoup.helper.HttpConnection
- postDataCharset(String)- Method in class org.jsoup.helper.HttpConnection.Request
- prefix()- Method in class org.jsoup.nodes.Attribute
-
Get this attribute's key prefix, if it has one; else the empty string.
- prefix()- Method in class org.jsoup.parser.Tag
-
Get this tag's prefix, if it has one; else the empty string.
- prepend(String)- Method in class org.jsoup.nodes.Element
-
Add inner HTML into this element.
- prepend(String)- Method in class org.jsoup.select.Elements
-
Add the supplied HTML to the start of each matched element's inner HTML.
- prependChild(Node)- Method in class org.jsoup.nodes.Element
-
Add a node to the start of this element's children.
- prependChildren(Collection<? extends Node>)- Method in class org.jsoup.nodes.Element
-
Insert the given nodes to the start of this Element's children.
- prependElement(String)- Method in class org.jsoup.nodes.Element
-
Create a new element by tag name, and add it as this Element's first child.
- prependElement(String, String)- Method in class org.jsoup.nodes.Element
-
Create a new element by tag name and namespace, and add it as this Element's first child.
- prependText(String)- Method in class org.jsoup.nodes.Element
-
Create and prepend a new TextNode to this element.
- preserveAttributeCase()- Method in class org.jsoup.parser.ParseSettings
-
Returns true if preserving attribute case.
- preserveCase- Static variable in class org.jsoup.parser.ParseSettings
-
Preserve both tag and attribute case.
- preserveRelativeLinks()- Method in class org.jsoup.safety.Safelist
-
Get the current setting for preserving relative links.
- preserveRelativeLinks(boolean)- Method in class org.jsoup.safety.Safelist
-
Configure this Safelist to preserve relative links in an element's URL attribute, or convert them to absolute links.
- preserveTagCase()- Method in class org.jsoup.parser.ParseSettings
-
Returns true if preserving tag name case.
- preserveWhitespace()- Method in class org.jsoup.parser.Tag
-
Get if this tag should preserve whitespace within child text nodes.
- PreserveWhitespace- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag preserves whitespace (e.g.
- prettyPrint()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get if pretty printing is enabled.
- prettyPrint(boolean)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Enable or disable pretty printing.
- prev()- Method in class org.jsoup.select.Elements
-
Get the immediate previous element sibling of each element in this list.
- prev(String)- Method in class org.jsoup.select.Elements
-
Get the immediate previous element sibling of each element in this list, filtered by the query.
- prevAll()- Method in class org.jsoup.select.Elements
-
Get each of the previous element siblings of each element in this list.
- prevAll(String)- Method in class org.jsoup.select.Elements
-
Get each of the previous element siblings of each element in this list, that match the query.
- previousElementSibling()- Method in class org.jsoup.nodes.Element
-
Gets the previous element sibling of this element.
- previousElementSiblings()- Method in class org.jsoup.nodes.Element
-
Get each of the element siblings before this element.
- previousSibling()- Method in class org.jsoup.nodes.Node
-
Get this node's previous sibling.
- process(Token)- Method in class org.jsoup.parser.HtmlTreeBuilder
- process(Token)- Method in class org.jsoup.parser.XmlTreeBuilder
- Progress<ProgressContext> - Interface in org.jsoup
- proxy()- Method in interface org.jsoup.Connection.Request
-
Get the proxy used for this request.
- proxy()- Method in class org.jsoup.helper.HttpConnection.Request
- proxy(Proxy)- Method in interface org.jsoup.Connection
-
Set the proxy to use for this request.
- proxy(Proxy)- Method in interface org.jsoup.Connection.Request
-
Update the proxy for this request.
- proxy(Proxy)- Method in class org.jsoup.helper.HttpConnection
- proxy(Proxy)- Method in class org.jsoup.helper.HttpConnection.Request
- proxy(String, int)- Method in interface org.jsoup.Connection
-
Set the HTTP proxy to use for this request.
- proxy(String, int)- Method in interface org.jsoup.Connection.Request
-
Set the HTTP proxy to use for this request.
- proxy(String, int)- Method in class org.jsoup.helper.HttpConnection
- proxy(String, int)- Method in class org.jsoup.helper.HttpConnection.Request
- PseudoTextElement- Class in org.jsoup.nodes
- PseudoTextElement(Tag, String, Attributes)- Constructor for class org.jsoup.nodes.PseudoTextElement
- PUBLIC_KEY- Static variable in class org.jsoup.nodes.DocumentType
- publicId()- Method in class org.jsoup.nodes.DocumentType
-
Get this doctype's Public ID (when set, or empty string)
- put(String, boolean)- Method in class org.jsoup.nodes.Attributes
-
Set a new boolean attribute.
- put(String, String)- Method in class org.jsoup.nodes.Attributes
-
Set a new attribute, or replace an existing one by key.
- put(Attribute)- Method in class org.jsoup.nodes.Attributes
-
Set a new attribute, or replace an existing one by key.
- PUT- Enum constant in enum org.jsoup.Connection.Method
Q
- QueryParser- Class in org.jsoup.select
-
Parses a CSS selector into an Evaluator tree.
- quirks- Enum constant in enum org.jsoup.nodes.Document.QuirksMode
- quirksMode()- Method in class org.jsoup.nodes.Document
- quirksMode(Document.QuirksMode)- Method in class org.jsoup.nodes.Document
R
- Range- Class in org.jsoup.nodes
-
A Range object tracks the character positions in the original input source where a Node starts or ends.
- Range(Range.Position, Range.Position)- Constructor for class org.jsoup.nodes.Range
-
Creates a new Range with start and end Positions.
- Range.AttributeRange- Class in org.jsoup.nodes
- Range.Position- Class in org.jsoup.nodes
-
A Position object tracks the character position in the original input source where a Node starts or ends.
- RcData- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is an RCDATA element that can have text and character references (e.g.
- readToByteBuffer(InputStream, int)- Static method in class org.jsoup.helper.DataUtil
-
Read the input stream into a byte buffer.
- realm()- Method in class org.jsoup.helper.RequestAuthenticator.Context
-
Get the realm of the authentication request.
- referrer(String)- Method in interface org.jsoup.Connection
-
Set the request referrer (aka "referer") header.
- referrer(String)- Method in class org.jsoup.helper.HttpConnection
- relaxed()- Static method in class org.jsoup.safety.Safelist
-
This safelist allows a full range of text and structural body HTML:
a, b, blockquote, br, caption, cite, code, col, colgroup, dd, div, dl, dt, em, h1, h2, h3, h4, h5, h6, i, img, li, ol, p, pre, q, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, u, ul
- remainder()- Method in class org.jsoup.parser.TokenQueue
-
Consume and return whatever is left on the queue.
- remove()- Method in class org.jsoup.nodes.Node
-
Remove (delete) this node from the DOM tree.
- remove()- Method in class org.jsoup.nodes.NodeIterator
- remove()- Method in class org.jsoup.select.Elements
-
Remove each matched element from the DOM.
- remove(int)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- remove(int)- Method in class org.jsoup.select.Elements
-
Remove the Element at the specified index in this ist, and from the DOM.
- remove(Object)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- remove(Object)- Method in class org.jsoup.select.Elements
-
Remove the specified Element from this list, and from the DOM.
- remove(String)- Method in class org.jsoup.nodes.Attributes
-
Remove an attribute by key.
- REMOVE- Enum constant in enum org.jsoup.select.NodeFilter.FilterResult
-
Remove the node and its children
- removeAll(Collection<?>)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- removeAll(Collection<?>)- Method in class org.jsoup.select.Elements
-
Removes from this list, and from the DOM, each of the elements that are contained in the specified collection and are in this list.
- removeAttr(String)- Method in class org.jsoup.nodes.Element
- removeAttr(String)- Method in class org.jsoup.nodes.LeafNode
- removeAttr(String)- Method in class org.jsoup.nodes.Node
-
Remove an attribute from this node.
- removeAttr(String)- Method in class org.jsoup.select.Elements
-
Remove an attribute from every matched element.
- removeAttributes(String, String...)- Method in class org.jsoup.safety.Safelist
-
Remove a list of allowed attributes from a tag.
- removeChild(Node)- Method in class org.jsoup.nodes.FormElement
- removeChild(Node)- Method in class org.jsoup.nodes.Node
- removeClass(String)- Method in class org.jsoup.nodes.Element
-
Remove a class name from this element's
class
attribute. - removeClass(String)- Method in class org.jsoup.select.Elements
-
Remove the class name from every matched element's
class
attribute, if present. - removeCookie(String)- Method in interface org.jsoup.Connection.Base
-
Remove a cookie by name
- removeCookie(String)- Method in class org.jsoup.helper.HttpConnection.Response
- removeEnforcedAttribute(String, String)- Method in class org.jsoup.safety.Safelist
-
Remove a previously configured enforced attribute from a tag.
- removeHeader(String)- Method in interface org.jsoup.Connection.Base
-
Remove headers by name.
- removeHeader(String)- Method in class org.jsoup.helper.HttpConnection.Response
- removeIf(Predicate<? super Element>)- Method in class org.jsoup.select.Elements
-
Remove from the list, and from the DOM, all elements in this list that mach the given filter.
- removeIgnoreCase(String)- Method in class org.jsoup.nodes.Attributes
-
Remove an attribute by key.
- removeProtocols(String, String, String...)- Method in class org.jsoup.safety.Safelist
-
Remove allowed URL protocols for an element's URL attribute.
- removeRange(int, int)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- removeTags(String...)- Method in class org.jsoup.safety.Safelist
-
Remove a list of allowed elements from a safelist.
- reparentChild(Node)- Method in class org.jsoup.nodes.Node
- replaceAll(UnaryOperator<Element>)- Method in class org.jsoup.select.Elements
-
Replace each element in this list with the result of the operator, and update the DOM.
- replaceChild(Node, Node)- Method in class org.jsoup.nodes.Node
- replaceWith(Node)- Method in class org.jsoup.nodes.Node
-
Replace this node in the DOM with the supplied node.
- request()- Method in interface org.jsoup.Connection
-
Get the request object associated with this connection
- request()- Method in class org.jsoup.helper.HttpConnection
- request(Connection.Request)- Method in interface org.jsoup.Connection
-
Set the connection's request
- request(Connection.Request)- Method in class org.jsoup.helper.HttpConnection
- RequestAuthenticator- Interface in org.jsoup.helper
-
A
RequestAuthenticator
is used inConnection
to authenticate if required to proxies and web servers. - RequestAuthenticator.Context- Class in org.jsoup.helper
-
Provides details for the request, to determine the appropriate credentials to return.
- requestBody()- Method in interface org.jsoup.Connection.Request
-
Get the current request body.
- requestBody()- Method in class org.jsoup.helper.HttpConnection.Request
- requestBody(String)- Method in interface org.jsoup.Connection.Request
-
Set a POST (or PUT) request body.
- requestBody(String)- Method in class org.jsoup.helper.HttpConnection.Request
- requestBody(String)- Method in interface org.jsoup.Connection
-
Set a POST (or PUT) request body.
- requestBody(String)- Method in class org.jsoup.helper.HttpConnection
- requestBodyStream(InputStream)- Method in interface org.jsoup.Connection.Request
-
Set the request body.
- requestBodyStream(InputStream)- Method in interface org.jsoup.Connection
-
Set the request body.
- requestBodyStream(InputStream)- Method in class org.jsoup.helper.HttpConnection.Request
- requestBodyStream(InputStream)- Method in class org.jsoup.helper.HttpConnection
- reset()- Method in class org.jsoup.select.CombiningEvaluator
- reset()- Method in class org.jsoup.select.Evaluator
-
Reset any internal state in this Evaluator before executing a new Collector evaluation.
- response()- Method in interface org.jsoup.Connection
-
Get the response, once the request has been executed.
- response()- Method in class org.jsoup.helper.HttpConnection
- response(Connection.Response)- Method in interface org.jsoup.Connection
-
Set the connection's response
- response(Connection.Response)- Method in class org.jsoup.helper.HttpConnection
- restart(Node)- Method in class org.jsoup.nodes.NodeIterator
-
Restart this Iterator from the specified start node.
- retainAll(Collection<?>)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- retainAll(Collection<?>)- Method in class org.jsoup.select.Elements
-
Retain in this list, and in the DOM, only the elements that are in the specified collection and are in this list.
- root()- Method in class org.jsoup.nodes.Element
- root()- Method in class org.jsoup.nodes.Node
-
Get this node's root node; that is, its topmost ancestor.
S
- Safelist- Class in org.jsoup.safety
-
Safe-lists define what HTML (elements and attributes) to allow through the cleaner.
- Safelist()- Constructor for class org.jsoup.safety.Safelist
-
Create a new, empty safelist.
- Safelist(Safelist)- Constructor for class org.jsoup.safety.Safelist
-
Deep copy an existing Safelist to a new Safelist.
- SeenSelfClose- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag has been seen self-closing in this parse.
- select(String)- Method in class org.jsoup.nodes.Element
-
Find elements that match the
Selector
CSS query, with this element as the starting context. - select(String)- Method in class org.jsoup.select.Elements
-
Find matching elements within this element list.
- select(String, Iterable<Element>)- Static method in class org.jsoup.select.Selector
-
Find elements matching the query, across multiple roots.
- select(String, Element)- Static method in class org.jsoup.select.Selector
-
Find Elements matching the CSS query.
- select(Evaluator)- Method in class org.jsoup.nodes.Element
-
Find elements that match the supplied Evaluator.
- select(Evaluator, Element)- Static method in class org.jsoup.select.Selector
-
Find Elements matching the Evaluator.
- selectFirst(String)- Method in class org.jsoup.nodes.Element
-
Find the first Element that matches the
Selector
CSS query, with this element as the starting context. - selectFirst(String)- Method in class org.jsoup.parser.StreamParser
-
Finds the first Element that matches the provided query.
- selectFirst(String)- Method in class org.jsoup.select.Elements
-
Find the first Element that matches the
Selector
CSS query within this element list. - selectFirst(String, Iterable<Element>)- Static method in class org.jsoup.select.Selector
-
Find the first element matching the query, across multiple roots.
- selectFirst(String, Element)- Static method in class org.jsoup.select.Selector
-
Find the first Element that matches the query.
- selectFirst(Evaluator)- Method in class org.jsoup.nodes.Element
-
Finds the first Element that matches the supplied Evaluator, with this element as the starting context, or
null
if none match. - selectFirst(Evaluator)- Method in class org.jsoup.parser.StreamParser
-
Finds the first Element that matches the provided query.
- selectNext(String)- Method in class org.jsoup.parser.StreamParser
-
Finds the next Element that matches the provided query.
- selectNext(Evaluator)- Method in class org.jsoup.parser.StreamParser
-
Finds the next Element that matches the provided query.
- Selector- Class in org.jsoup.select
-
CSS-like element selector, that finds elements matching a query.
- Selector.SelectorParseException- Exception in org.jsoup.select
- SelectorParseException(String)- Constructor for exception org.jsoup.select.Selector.SelectorParseException
- SelectorParseException(String, Object...)- Constructor for exception org.jsoup.select.Selector.SelectorParseException
- SelectorParseException(Throwable, String, Object...)- Constructor for exception org.jsoup.select.Selector.SelectorParseException
- selectStream(String)- Method in class org.jsoup.nodes.Element
-
Selects elements from the given root that match the specified
Selector
CSS query, with this element as the starting context, and returns them as a lazy Stream. - selectStream(String, Element)- Static method in class org.jsoup.select.Selector
-
Finds a Stream of elements matching the CSS query.
- selectStream(Evaluator)- Method in class org.jsoup.nodes.Element
-
Find a Stream of elements that match the supplied Evaluator.
- selectStream(Evaluator, Element)- Static method in class org.jsoup.select.Selector
-
Finds a Stream of elements matching the evaluator.
- selectXpath(String)- Method in class org.jsoup.nodes.Element
-
Find Elements that match the supplied XPath expression.
- selectXpath(String, Class<T>)- Method in class org.jsoup.nodes.Element
-
Find Nodes that match the supplied XPath expression.
- selectXpath(String, Document)- Method in class org.jsoup.helper.W3CDom
-
Evaluate an XPath query against the supplied document, and return the results.
- selectXpath(String, Node)- Method in class org.jsoup.helper.W3CDom
-
Evaluate an XPath query against the supplied context node, and return the results.
- SelfClose- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag can self-close (e.g.
- SerializationException- Exception in org.jsoup
-
A SerializationException is raised whenever serialization of a DOM element fails.
- SerializationException()- Constructor for exception org.jsoup.SerializationException
-
Creates and initializes a new serialization exception with no error message and cause.
- SerializationException(String)- Constructor for exception org.jsoup.SerializationException
-
Creates and initializes a new serialization exception with the given error message and no cause.
- SerializationException(String, Throwable)- Constructor for exception org.jsoup.SerializationException
-
Creates and initializes a new serialization exception with the given error message and cause.
- SerializationException(Throwable)- Constructor for exception org.jsoup.SerializationException
-
Creates and initializes a new serialization exception with the specified cause and an error message of
(
cause==null ? - set(int)- Method in class org.jsoup.parser.Tag
-
Set an option on this tag.
- set(int, E)- Method in class org.jsoup.helper.ChangeNotifyingArrayList
-
Deprecated.
- set(int, Element)- Method in class org.jsoup.select.Elements
-
Replace the Element at the specified index in this list, and in the DOM.
- setBaseUri(String)- Method in class org.jsoup.nodes.Node
-
Update the base URI of this node and all of its descendants.
- setData(String)- Method in class org.jsoup.nodes.Comment
- setKey(String)- Method in class org.jsoup.nodes.Attribute
-
Set the attribute key; case is preserved.
- setParentNode(Node)- Method in class org.jsoup.nodes.Node
- setPubSysKey(String)- Method in class org.jsoup.nodes.DocumentType
- setSiblingIndex(int)- Method in class org.jsoup.nodes.Node
- settings()- Method in class org.jsoup.parser.Parser
-
Gets the current ParseSettings for this Parser
- settings(ParseSettings)- Method in class org.jsoup.parser.Parser
-
Update the ParseSettings of this Parser, to control the case sensitivity of tags and attributes.
- setTrackErrors(int)- Method in class org.jsoup.parser.Parser
-
Enable or disable parse error tracking for the next parse.
- setTrackPosition(boolean)- Method in class org.jsoup.parser.Parser
-
Enable or disable source position tracking.
- setTreeBuilder(TreeBuilder)- Method in class org.jsoup.parser.Parser
-
Deprecated.unused method, will be removed in 1.21.1
- setValue(String)- Method in class org.jsoup.nodes.Attribute
-
Set the attribute value.
- setWholeData(String)- Method in class org.jsoup.nodes.DataNode
-
Set the data contents of this node.
- shallowClone()- Method in class org.jsoup.nodes.Document
- shallowClone()- Method in class org.jsoup.nodes.Element
- shallowClone()- Method in class org.jsoup.nodes.Node
-
Create a stand-alone, shallow copy of this node.
- shouldCollapseAttribute(String, String, Document.OutputSettings)- Static method in class org.jsoup.nodes.Attribute
- shouldCollapseAttribute(Document.OutputSettings)- Method in class org.jsoup.nodes.Attribute
-
Collapsible if it's a boolean attribute and value is empty or same as name
- siblingElements()- Method in class org.jsoup.nodes.Element
-
Get sibling elements.
- siblingIndex()- Method in class org.jsoup.nodes.Node
-
Get the list index of this node in its node sibling list.
- siblingNodes()- Method in class org.jsoup.nodes.Node
-
Retrieves this node's sibling nodes.
- simpleText()- Static method in class org.jsoup.safety.Safelist
-
This safelist allows only simple text formatting:
b, em, i, strong, u
. - size()- Method in class org.jsoup.nodes.Attributes
-
Get the number of attributes in this set, including any jsoup internal-only attributes.
- SKIP_CHILDREN- Enum constant in enum org.jsoup.select.NodeFilter.FilterResult
-
Skip the child nodes, but do call
NodeFilter.tail(
next.Node, int) - SKIP_ENTIRELY- Enum constant in enum org.jsoup.select.NodeFilter.FilterResult
-
Skip the subtree, and do not call
NodeFilter.tail(
.Node, int) - sourceNodes(NodeList, Class<T>)- Method in class org.jsoup.helper.W3CDom
-
Retrieves the original jsoup DOM nodes from a nodelist created by this convertor.
- SourceProperty- Static variable in class org.jsoup.helper.W3CDom
-
For W3C Documents created by this class, this property is set on each node to link back to the original jsoup node.
- sourceRange()- Method in class org.jsoup.nodes.Attribute
-
Get the source ranges (start to end positions) in the original input source from which this attribute's name and value were parsed.
- sourceRange()- Method in class org.jsoup.nodes.Node
-
Get the source range (start and end positions) in the original input source from which this node was parsed.
- sourceRange(String)- Method in class org.jsoup.nodes.Attributes
-
Get the source ranges (start to end position) in the original input source from which this attribute's name and value were parsed.
- sourceRange(String, Range.AttributeRange)- Method in class org.jsoup.nodes.Attributes
-
Set the source ranges (start to end position) from which this attribute's name and value were parsed.
- splitText(int)- Method in class org.jsoup.nodes.TextNode
-
Split this text node into two nodes at the specified string offset.
- sslSocketFactory()- Method in interface org.jsoup.Connection.Request
-
Get the current custom SSL socket factory, if any.
- sslSocketFactory()- Method in class org.jsoup.helper.HttpConnection.Request
- sslSocketFactory(SSLSocketFactory)- Method in interface org.jsoup.Connection.Request
-
Set a custom SSL socket factory.
- sslSocketFactory(SSLSocketFactory)- Method in interface org.jsoup.Connection
-
Set custom SSL socket factory
- sslSocketFactory(SSLSocketFactory)- Method in class org.jsoup.helper.HttpConnection.Request
- sslSocketFactory(SSLSocketFactory)- Method in class org.jsoup.helper.HttpConnection
- start()- Method in class org.jsoup.nodes.Range
-
Get the start position of this node.
- startPos()- Method in class org.jsoup.nodes.Range
-
Get the starting cursor position of this range.
- statusCode()- Method in interface org.jsoup.Connection.Response
-
Get the status code of the response.
- statusCode()- Method in class org.jsoup.helper.HttpConnection.Response
- statusMessage()- Method in interface org.jsoup.Connection.Response
-
Get the status message of the response.
- statusMessage()- Method in class org.jsoup.helper.HttpConnection.Response
- stop()- Method in class org.jsoup.parser.StreamParser
-
Flags that the parse should be stopped; the backing iterator will not return any more Elements.
- STOP- Enum constant in enum org.jsoup.select.NodeFilter.FilterResult
-
Stop processing
- stream()- Method in class org.jsoup.nodes.Element
-
Returns a Stream of this Element and all of its descendant Elements.
- stream()- Method in class org.jsoup.parser.StreamParser
-
Creates a
Stream
ofElement
s, with the input being parsed as each element is consumed. - stream(Evaluator, Element)- Static method in class org.jsoup.select.Collector
-
Obtain a Stream of elements by visiting the root and every descendant of root and testing it against the evaluator.
- streamParser()- Method in interface org.jsoup.Connection.Response
-
Returns a
StreamParser
that will parse the Response progressively. - streamParser()- Method in class org.jsoup.helper.HttpConnection.Response
- streamParser(Path, Charset, String, Parser)- Static method in class org.jsoup.helper.DataUtil
-
Returns a
StreamParser
that will parse the supplied file progressively. - StreamParser- Class in org.jsoup.parser
-
A StreamParser provides a progressive parse of its input.
- StreamParser(Parser)- Constructor for class org.jsoup.parser.StreamParser
-
Construct a new StreamParser, using the supplied base Parser.
- submit()- Method in class org.jsoup.nodes.FormElement
-
Prepare to submit this form.
- syntax()- Method in class org.jsoup.nodes.Document.OutputSettings
-
Get the document's current output syntax.
- syntax(Document.OutputSettings.Syntax)- Method in class org.jsoup.nodes.Document.OutputSettings
-
Set the document's output syntax.
- SYSTEM_KEY- Static variable in class org.jsoup.nodes.DocumentType
- systemId()- Method in class org.jsoup.nodes.DocumentType
-
Get this doctype's System ID (when set, or empty string)
T
- tag()- Method in class org.jsoup.nodes.Element
-
Get the Tag for this element.
- tag(Tag)- Method in class org.jsoup.nodes.Element
-
Change the Tag of this element.
- Tag- Class in org.jsoup.parser
-
A Tag represents an Element's name and configured options, common throughout the Document.
- Tag(String)- Constructor for class org.jsoup.parser.Tag
-
Create a new Tag, with the given name, in the HTML namespace.
- Tag(String)- Constructor for class org.jsoup.select.Evaluator.Tag
- Tag(String, String)- Constructor for class org.jsoup.parser.Tag
-
Create a new Tag, with the given name and namespace.
- TagEndsWith(String)- Constructor for class org.jsoup.select.Evaluator.TagEndsWith
- tagName()- Method in class org.jsoup.nodes.Element
-
Get the name of the tag for this element.
- tagName(String)- Method in class org.jsoup.nodes.Element
-
Change (rename) the tag of this element.
- tagName(String)- Method in class org.jsoup.select.Elements
-
Update (rename) the tag name of each matched element.
- tagName(String, String)- Method in class org.jsoup.nodes.Element
-
Change (rename) the tag of this element.
- tagSet()- Method in class org.jsoup.parser.Parser
-
Get the current TagSet for this Parser, which will be either this parser's default, or one that you have set.
- tagSet(TagSet)- Method in class org.jsoup.parser.Parser
-
Set a custom TagSet to use for this Parser.
- TagSet- Class in org.jsoup.parser
-
A TagSet controls the
Tag
configuration for a Document's parse, and its serialization. - TagSet()- Constructor for class org.jsoup.parser.TagSet
- TagSet(TagSet)- Constructor for class org.jsoup.parser.TagSet
- TagStartsWith(String)- Constructor for class org.jsoup.select.Evaluator.TagStartsWith
- tail(Node, int)- Method in class org.jsoup.helper.W3CDom.W3CBuilder
- tail(Node, int)- Method in interface org.jsoup.select.NodeFilter
-
Callback for when a node is last visited, after all of its descendants have been visited.
- tail(Node, int)- Method in interface org.jsoup.select.NodeVisitor
-
Callback for when a node is last visited, after all of its descendants have been visited.
- text()- Method in class org.jsoup.nodes.CDataNode
-
Get the un-encoded, non-normalized text content of this CDataNode.
- text()- Method in class org.jsoup.nodes.Element
-
Gets the normalized, combined text of this element and all its children.
- text()- Method in class org.jsoup.nodes.TextNode
-
Get the text content of this text node.
- text()- Method in class org.jsoup.select.Elements
-
Get the combined text of all the matched elements.
- text(String)- Method in class org.jsoup.nodes.Document
-
Set the text of the
body
of this document. - text(String)- Method in class org.jsoup.nodes.Element
-
Set the text of this element.
- text(String)- Method in class org.jsoup.nodes.TextNode
-
Set the text content of this text node.
- TextNode- Class in org.jsoup.nodes
-
A text node.
- TextNode(String)- Constructor for class org.jsoup.nodes.TextNode
-
Create a new TextNode representing the supplied (unencoded) text).
- textNodes()- Method in class org.jsoup.nodes.Element
-
Get this element's child text nodes.
- textNodes()- Method in class org.jsoup.select.Elements
-
Get
TextNode
nodes that are direct child nodes of the selected elements. - timeout()- Method in interface org.jsoup.Connection.Request
-
Get the request timeout, in milliseconds.
- timeout()- Method in class org.jsoup.helper.HttpConnection.Request
- timeout(int)- Method in interface org.jsoup.Connection.Request
-
Update the request timeout.
- timeout(int)- Method in interface org.jsoup.Connection
-
Set the total request timeout duration.
- timeout(int)- Method in class org.jsoup.helper.HttpConnection.Request
- timeout(int)- Method in class org.jsoup.helper.HttpConnection
- title()- Method in class org.jsoup.nodes.Document
-
Get the string contents of the document's
title
element. - title(String)- Method in class org.jsoup.nodes.Document
-
Set the document's
title
element. - toggleClass(String)- Method in class org.jsoup.nodes.Element
-
Toggle a class name on this element's
class
attribute: if present, remove it; otherwise add it. - toggleClass(String)- Method in class org.jsoup.select.Elements
-
Toggle the class name on every matched element's
class
attribute. - TokenQueue- Class in org.jsoup.parser
-
A character reader with helpers focusing on parsing CSS selectors.
- TokenQueue(String)- Constructor for class org.jsoup.parser.TokenQueue
-
Create a new TokenQueue.
- toString()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- toString()- Method in class org.jsoup.nodes.Attribute
-
Get the string representation of this attribute, implemented as
Attribute.html(
.) - toString()- Method in class org.jsoup.nodes.Attributes
- toString()- Method in class org.jsoup.nodes.Node
-
Gets this node's outer HTML.
- toString()- Method in class org.jsoup.nodes.Range.AttributeRange
-
Get a String presentation of this Attribute range, in the form
line,column:pos-line,column:pos=line,column:pos-line,column:pos
(name start - name end = val start - val end). . - toString()- Method in class org.jsoup.nodes.Range.Position
-
Gets a String presentation of this Position, in the format
line,column:pos
. - toString()- Method in class org.jsoup.nodes.Range
-
Gets a String presentation of this Range, in the format
line,column:pos-line,column:pos
. - toString()- Method in class org.jsoup.nodes.TextNode
- toString()- Method in class org.jsoup.nodes.XmlDeclaration
- toString()- Method in class org.jsoup.parser.CharacterReader
- toString()- Method in class org.jsoup.parser.HtmlTreeBuilder
- toString()- Method in class org.jsoup.parser.ParseError
- toString()- Method in class org.jsoup.parser.Tag
- toString()- Method in class org.jsoup.parser.TokenQueue
- toString()- Method in class org.jsoup.select.CombiningEvaluator.And
- toString()- Method in class org.jsoup.select.CombiningEvaluator.Or
- toString()- Method in class org.jsoup.select.Elements
-
Get the combined outer HTML of all matched elements.
- toString()- Method in class org.jsoup.select.Evaluator.AllElements
- toString()- Method in class org.jsoup.select.Evaluator.Attribute
- toString()- Method in class org.jsoup.select.Evaluator.AttributeStarting
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValue
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValueContaining
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValueEnding
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValueMatching
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValueNot
- toString()- Method in class org.jsoup.select.Evaluator.AttributeWithValueStarting
- toString()- Method in class org.jsoup.select.Evaluator.Class
- toString()- Method in class org.jsoup.select.Evaluator.ContainsData
- toString()- Method in class org.jsoup.select.Evaluator.ContainsOwnText
- toString()- Method in class org.jsoup.select.Evaluator.ContainsText
- toString()- Method in class org.jsoup.select.Evaluator.ContainsWholeOwnText
- toString()- Method in class org.jsoup.select.Evaluator.ContainsWholeText
- toString()- Method in class org.jsoup.select.Evaluator.CssNthEvaluator
- toString()- Method in class org.jsoup.select.Evaluator.Id
- toString()- Method in class org.jsoup.select.Evaluator.IndexEquals
- toString()- Method in class org.jsoup.select.Evaluator.IndexGreaterThan
- toString()- Method in class org.jsoup.select.Evaluator.IndexLessThan
- toString()- Method in class org.jsoup.select.Evaluator.IsEmpty
- toString()- Method in class org.jsoup.select.Evaluator.IsFirstChild
- toString()- Method in class org.jsoup.select.Evaluator.IsFirstOfType
- toString()- Method in class org.jsoup.select.Evaluator.IsLastChild
- toString()- Method in class org.jsoup.select.Evaluator.IsLastOfType
- toString()- Method in class org.jsoup.select.Evaluator.IsOnlyChild
- toString()- Method in class org.jsoup.select.Evaluator.IsOnlyOfType
- toString()- Method in class org.jsoup.select.Evaluator.IsRoot
- toString()- Method in class org.jsoup.select.Evaluator.Matches
- toString()- Method in class org.jsoup.select.Evaluator.MatchesOwn
- toString()- Method in class org.jsoup.select.Evaluator.MatchesWholeOwnText
- toString()- Method in class org.jsoup.select.Evaluator.MatchesWholeText
- toString()- Method in class org.jsoup.select.Evaluator.MatchText
- toString()- Method in class org.jsoup.select.Evaluator.Tag
- toString()- Method in class org.jsoup.select.Evaluator.TagEndsWith
- toString()- Method in class org.jsoup.select.Evaluator.TagStartsWith
- toString()- Method in class org.jsoup.select.QueryParser
- toString()- Method in exception org.jsoup.UnsupportedMimeTypeException
- TRACE- Enum constant in enum org.jsoup.Connection.Method
- tracking(int)- Static method in class org.jsoup.parser.ParseErrorList
- trackNewlines(boolean)- Method in class org.jsoup.parser.CharacterReader
-
Enables or disables line number tracking.
- traverse(NodeVisitor)- Method in class org.jsoup.nodes.Element
- traverse(NodeVisitor)- Method in class org.jsoup.nodes.Node
-
Perform a depth-first traversal through this node and its descendants.
- traverse(NodeVisitor)- Method in class org.jsoup.select.Elements
-
Perform a depth-first traversal on each of the selected elements.
- traverse(NodeVisitor, Node)- Static method in class org.jsoup.select.NodeTraversor
-
Run a depth-first traverse of the root and all of its descendants.
- traverse(NodeVisitor, Elements)- Static method in class org.jsoup.select.NodeTraversor
-
Run a depth-first traversal of each Element.
- type()- Method in class org.jsoup.helper.RequestAuthenticator.Context
U
- unescape(String)- Static method in class org.jsoup.nodes.Entities
-
Un-escape an HTML escaped string.
- unescape(String)- Static method in class org.jsoup.parser.TokenQueue
-
Unescape a \ escaped string.
- unescapeCssIdentifier(String)- Static method in class org.jsoup.select.Selector
-
Consume a CSS identifier (ID or class) off the queue.
- unescapeEntities(String, boolean)- Static method in class org.jsoup.parser.Parser
-
Utility method to unescape HTML entities from a string
- UnsupportedMimeTypeException- Exception in org.jsoup
-
Signals that a HTTP response returned a mime type that is not supported.
- UnsupportedMimeTypeException(String, String, String)- Constructor for exception org.jsoup.UnsupportedMimeTypeException
- unwrap()- Method in class org.jsoup.nodes.Node
-
Removes this node from the DOM, and moves its children up into the node's parent.
- unwrap()- Method in class org.jsoup.select.Elements
-
Removes the matched elements from the DOM, and moves their children up into their parents.
- updateMetaCharsetElement()- Method in class org.jsoup.nodes.Document
-
Deprecated.this setting has no effect; the meta charset element is always updated when
Document.charset(
is called. This method will be removed in jsoup 1.20.1.Charset) - updateMetaCharsetElement(boolean)- Method in class org.jsoup.nodes.Document
-
Deprecated.this setting has no effect; the meta charset element is always updated when
Document.charset(
is called. This method will be removed in jsoup 1.20.1.Charset) - url()- Method in interface org.jsoup.Connection.Base
-
Get the URL of this Request or Response.
- url()- Method in class org.jsoup.helper.HttpConnection.Response
- url()- Method in class org.jsoup.helper.RequestAuthenticator.Context
-
Get the URL that is being requested.
- url(String)- Method in interface org.jsoup.Connection
-
Set the request URL to fetch.
- url(String)- Method in class org.jsoup.helper.HttpConnection
- url(URL)- Method in interface org.jsoup.Connection.Base
-
Set the URL
- url(URL)- Method in interface org.jsoup.Connection
-
Set the request URL to fetch.
- url(URL)- Method in class org.jsoup.helper.HttpConnection.Response
- url(URL)- Method in class org.jsoup.helper.HttpConnection
- userAgent(String)- Method in interface org.jsoup.Connection
-
Set the request user-agent header.
- userAgent(String)- Method in class org.jsoup.helper.HttpConnection
- userData(String)- Method in class org.jsoup.nodes.Attributes
-
Get an arbitrary user-data object by key.
- userData(String, Object)- Method in class org.jsoup.nodes.Attributes
-
Set an arbitrary user-data object by key.
- UTF_8- Static variable in class org.jsoup.helper.DataUtil
V
- val()- Method in class org.jsoup.nodes.Element
-
Get the value of a form element (input, textarea, etc).
- val()- Method in class org.jsoup.select.Elements
-
Get the form element's value of the first matched element.
- val(String)- Method in class org.jsoup.nodes.Element
-
Set the value of a form element (input, textarea, etc).
- val(String)- Method in class org.jsoup.select.Elements
-
Set the form element's value in each of the matched elements.
- Validate- Class in org.jsoup.helper
-
Validators to check that method arguments meet expectations.
- ValidationException- Exception in org.jsoup.helper
-
Validation exceptions, as thrown by the methods in
Validate
. - ValidationException(String)- Constructor for exception org.jsoup.helper.ValidationException
- Validator- Static variable in exception org.jsoup.helper.ValidationException
- value()- Method in interface org.jsoup.Connection.KeyVal
-
Get the value of a keyval
- value()- Method in class org.jsoup.helper.HttpConnection.KeyVal
- value(String)- Method in interface org.jsoup.Connection.KeyVal
-
Update the value of a keyval
- value(String)- Method in class org.jsoup.helper.HttpConnection.KeyVal
- valueOf(String)- Static method in enum org.jsoup.Connection.Method
-
Returns the enum constant of this type with the specified name.
- valueOf(String)- Static method in enum org.jsoup.nodes.Document.OutputSettings.Syntax
-
Returns the enum constant of this type with the specified name.
- valueOf(String)- Static method in enum org.jsoup.nodes.Document.QuirksMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String)- Static method in enum org.jsoup.nodes.Entities.EscapeMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String)- Static method in class org.jsoup.parser.Tag
-
Get a Tag by name.
- valueOf(String)- Static method in enum org.jsoup.select.NodeFilter.FilterResult
-
Returns the enum constant of this type with the specified name.
- valueOf(String, String)- Method in class org.jsoup.parser.TagSet
-
Get a Tag by name from this TagSet.
- valueOf(String, String, ParseSettings)- Static method in class org.jsoup.parser.Tag
-
Get a Tag by name.
- valueOf(String, String, ParseSettings)- Method in class org.jsoup.parser.TagSet
-
Get a Tag by name from this TagSet.
- valueOf(String, ParseSettings)- Static method in class org.jsoup.parser.Tag
-
Get a Tag by name.
- valueRange()- Method in class org.jsoup.nodes.Range.AttributeRange
-
Get the source range for the attribute's value.
- values()- Static method in enum org.jsoup.Connection.Method
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values()- Static method in enum org.jsoup.nodes.Document.OutputSettings.Syntax
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values()- Static method in enum org.jsoup.nodes.Document.QuirksMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values()- Static method in enum org.jsoup.nodes.Entities.EscapeMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values()- Static method in enum org.jsoup.select.NodeFilter.FilterResult
-
Returns an array containing the constants of this enum type, in the order they are declared.
- Void- Static variable in class org.jsoup.parser.Tag
-
Tag option: the tag is a void tag (e.g.
W
- W3CBuilder(Document)- Constructor for class org.jsoup.helper.W3CDom.W3CBuilder
- W3CDom- Class in org.jsoup.helper
-
Helper class to transform a
Document
to aorg.w3c.dom.Document
, for integration with toolsets that use the W3C DOM. - W3CDom()- Constructor for class org.jsoup.helper.W3CDom
- W3CDom.W3CBuilder- Class in org.jsoup.helper
-
Implements the conversion by walking the input.
- wholeOwnText()- Method in class org.jsoup.nodes.Element
-
Get the non-normalized, decoded text of this element, not including any child elements, including any newlines and spaces present in the original source.
- wholeText()- Method in class org.jsoup.nodes.Element
-
Get the non-normalized, decoded text of this element and its children, including only any newlines and spaces present in the original source.
- wrap(String)- Method in class org.jsoup.nodes.Element
-
Wrap the supplied HTML around this element.
- wrap(String)- Method in class org.jsoup.nodes.Node
-
Wrap the supplied HTML around this node.
- wrap(String)- Method in class org.jsoup.select.Elements
-
Wrap the supplied HTML around each matched elements.
- wtf(String)- Static method in class org.jsoup.helper.Validate
-
Blow up if we reach an unexpected state.
X
- xhtml- Enum constant in enum org.jsoup.nodes.Entities.EscapeMode
-
Restricted entities suitable for XHTML output: lt, gt, amp, and quot only.
- xml- Enum constant in enum org.jsoup.nodes.Document.OutputSettings.Syntax
- XmlDeclaration- Class in org.jsoup.nodes
-
An XML Declaration.
- XmlDeclaration(String, boolean)- Constructor for class org.jsoup.nodes.XmlDeclaration
-
Create a new XML declaration
- xmlParser()- Static method in class org.jsoup.parser.Parser
-
Create a new XML parser.
- XmlTreeBuilder- Class in org.jsoup.parser
-
Use the
XmlTreeBuilder
when you want to parse XML without any of the HTML DOM rules being applied to the document. - XmlTreeBuilder()- Constructor for class org.jsoup.parser.XmlTreeBuilder
- XPath- Search tag in org.jsoup.nodes.Element.selectXpath(String)
- XPathFactoryProperty- Static variable in class org.jsoup.helper.W3CDom
-
To get support for XPath versions > 1, set this property to the classname of an alternate XPathFactory implementation.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form