MCPcopy Index your code

hub / github.com/jhy/jsoup / functions

Functions3,613 in github.com/jhy/jsoup

↓ 1,051 callersMethodparse
Parse HTML into a Document. The parser will make a sensible, balanced document tree out of any HTML. @param html HTML to parse @param ba
src/main/java/org/jsoup/Jsoup.java:36
↓ 643 callersMethodget
Execute the request as a GET, and parse the result. @return parsed Document @throws java.net.MalformedURLException if the request URL is not an HTTP o
src/main/java/org/jsoup/Connection.java:475
↓ 599 callersMethodselect
()
src/test/java/org/jsoup/nodes/ElementTest.java:2756
↓ 531 callersMethodsize
()
src/test/java/org/jsoup/integration/netty/TestPart.java:35
↓ 393 callersMethodappend
()
src/main/java/org/jsoup/internal/QuietAppendable.java:24
↓ 317 callersMethodbody
Get this document's {@code <body>} or {@code <frameset>} element. <p> As a <b>side-effect</b>, if this Document does not already have an HTM
src/main/java/org/jsoup/nodes/Document.java:154
↓ 260 callersMethodtoString
()
src/test/java/org/jsoup/nodes/BuildEntities.java:92
↓ 259 callersMethodtransition
(TokeniserState newState)
src/main/java/org/jsoup/parser/Tokeniser.java:118
↓ 253 callersMethodtext
()
src/test/java/org/jsoup/select/ElementsTest.java:117
↓ 226 callersMethodexpectFirst
()
src/test/java/org/jsoup/select/ElementsTest.java:616
↓ 219 callersMethodhtml
()
src/test/java/org/jsoup/select/ElementsTest.java:130
↓ 189 callersMethoderror
(TokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:278
↓ 186 callersMethodof
Retrieves the source range for a given Node. @param node the node to retrieve the position for @param start if this is the starting range. {@code fals
src/main/java/org/jsoup/nodes/Range.java:95
↓ 183 callersMethodfirst
Get the first matched element. @return The first matched element, or <code>null</code> if contents is empty.
src/main/java/org/jsoup/select/Nodes.java:173
↓ 176 callersMethodstripNewlines
(String text)
src/test/java/org/jsoup/TextUtil.java:16
↓ 142 callersMethodurl
Get the URL of this Request or Response. For redirected responses, this will be the final destination URL. @return URL @throws IllegalArgumentExceptio
src/main/java/org/jsoup/Connection.java:549
↓ 136 callersMethodhtml
()
src/test/java/org/jsoup/nodes/AttributeTest.java:12
↓ 135 callersMethodtext
Gets the <b>normalized, combined text</b> of this element and all its children. Whitespace is normalized and trimmed. <p>For example, given
src/main/java/org/jsoup/nodes/Element.java:1553
↓ 126 callersMethodnotNull
Validates that the object is not null @param obj object to test @throws ValidationException if the object is null
src/main/java/org/jsoup/helper/Validate.java:17
↓ 123 callersMethodcontains
(boolean own)
src/main/java/org/jsoup/select/QueryParser.java:444
↓ 123 callersMethodouterHtml
()
src/test/java/org/jsoup/select/ElementsTest.java:136
↓ 123 callersMethodtagName
Get the name of the tag for this element. E.g. {@code div}. If you are using {@link ParseSettings#preserveCase case preserving parsing}, this will ret
src/main/java/org/jsoup/nodes/Element.java:169
↓ 119 callersMethodput
Set a new attribute, or replace an existing one by key. @param key case sensitive attribute key (not null) @param value attribute value (which can be
src/main/java/org/jsoup/nodes/Attributes.java:156
↓ 119 callersMethodsize
Get the number of attributes in this set, excluding any internal-only attributes (e.g. user data). <p>Internal attributes are excluded from the {
src/main/java/org/jsoup/nodes/Attributes.java:343
↓ 118 callersMethodequals
(Object o)
src/main/java/org/jsoup/parser/Tag.java:332
↓ 118 callersMethodhtmlParser
Create a new HTML parser. This parser treats input as HTML5, and enforces the creation of a normalised document, based on a knowledge of the semantics
src/main/java/org/jsoup/parser/Parser.java:369
↓ 117 callersMethodoutputSettings
Get the document's current output settings. @return the document's current output settings.
src/main/java/org/jsoup/nodes/Document.java:533
↓ 116 callersMethodfirst
Get the first matched element. @return The first matched element, or <code>null</code> if contents is empty.
src/main/java/org/jsoup/select/Elements.java:611
↓ 110 callersMethodget
(AuthenticationHandler helper)
src/main/java/org/jsoup/helper/AuthenticationHandler.java:66
↓ 108 callersMethodconnect
Creates a new {@link Connection} (session), with the defined request URL. Use to fetch and parse a HTML page. <p> Use examples: <ul> <li><code>Docume
src/main/java/org/jsoup/Jsoup.java:94
↓ 107 callersMethodselectFirst
()
src/test/java/org/jsoup/select/SelectorTest.java:967
↓ 106 callersMethodvalueOf
Get a Tag by name. If not previously defined (unknown), returns a new generic tag, that can do anything. <p> Pre-defined tags (p, div etc) will be ==,
src/main/java/org/jsoup/parser/Tag.java:204
↓ 104 callersMethodorigin
The public origin endpoint facade used by tests and helper wrappers
src/test/java/org/jsoup/integration/TestServer.java:29
↓ 102 callersMethodremove
()
src/main/java/org/jsoup/helper/AuthenticationHandler.java:64
↓ 99 callersMethodselect
()
src/test/java/org/jsoup/parser/StreamParserTest.java:134
↓ 97 callersMethodset
Set an option on this tag. <p>Once a tag has a setting applied, it will be considered a known tag.</p> @param option the option to set
src/main/java/org/jsoup/parser/Tag.java:162
↓ 93 callersMethodadd
Insert a tag into this TagSet. If the tag already exists, it is replaced. <p>Tags explicitly added like this are considered to be known tags (vs
src/main/java/org/jsoup/parser/TagSet.java:80
↓ 93 callersMethodid
Get the {@code id} attribute of this element. @return The id attribute, if present, or an empty string if not.
src/main/java/org/jsoup/nodes/Element.java:260
↓ 92 callersMethodxmlParser
Create a new XML parser. This parser assumes no knowledge of the incoming tags and does not treat it as HTML, rather creates a simple tree directly fr
src/main/java/org/jsoup/parser/Parser.java:378
↓ 91 callersMethodattr
()
src/test/java/org/jsoup/select/ElementsTest.java:70
↓ 91 callersMethodchildNode
Get a child node by its 0-based index. @param index index of child node @return the child node at this index. @throws IndexOutOfBoundsE
src/main/java/org/jsoup/nodes/Node.java:276
↓ 85 callersMethoddata
Add a data parameter to the request @param keyval data to add. @return this Request, for chaining
src/main/java/org/jsoup/Connection.java:832
↓ 85 callersMethodnormalName
Get this tag's normalized (lowercased) name. @return the tag's normal name.
src/main/java/org/jsoup/parser/Tag.java:132
↓ 84 callersMethodtag
Get the Tag for this element. @return the tag object
src/main/java/org/jsoup/nodes/Element.java:229
↓ 81 callersMethodihVal
(String key, Document doc)
src/test/java/org/jsoup/integration/ConnectTest.java:119
↓ 80 callersMethodisEmpty
Get if this is void (aka empty) tag. @return true if this is a void tag
src/main/java/org/jsoup/parser/Tag.java:270
↓ 65 callersMethodhtml
Retrieves the element's inner HTML. E.g. on a {@code <div>} with one empty {@code <p>}, would return {@code <p></p>}. (Whereas {@link #outerHtml()} wo
src/main/java/org/jsoup/nodes/Element.java:1988
↓ 65 callersMethodpos
Gets the position currently read to in the content. Starts at 0. @return current position
src/main/java/org/jsoup/parser/CharacterReader.java:150
↓ 64 callersMethodemit
(Token token)
src/main/java/org/jsoup/parser/Tokeniser.java:79
↓ 64 callersMethodexecute
Execute the request. @return the executed {@link Response} @throws java.net.MalformedURLException if the request URL is not a HTTP or HTTPS URL, or is
src/main/java/org/jsoup/Connection.java:497
↓ 64 callersMethodtitle
Get the string contents of the document's {@code title} element. @return Trimmed title, or empty string if none set.
src/main/java/org/jsoup/nodes/Document.java:197
↓ 63 callersMethodclean
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through an allow-list of safe tags and attributes. @param b
src/main/java/org/jsoup/Jsoup.java:346
↓ 63 callersMethodgetKey
Get the attribute's key (aka name). @return the attribute key
src/main/java/org/jsoup/nodes/Attribute.java:61
↓ 63 callersMethodinSorted
(String needle, String[] haystack)
src/main/java/org/jsoup/internal/StringUtil.java:265
↓ 61 callersMethodassertSelectedIds
Test that the selected elements match exactly the specified IDs.
src/test/java/org/jsoup/select/SelectorTest.java:32
↓ 59 callersMethodnotEmpty
Validates that the string is not null and is not empty @param string the string to test @throws ValidationException if the string is null or empty
src/main/java/org/jsoup/helper/Validate.java:175
↓ 57 callersMethodparse
Read and parse the body of the response as a Document. If you intend to parse the same response multiple times, you should {@link #readFully(
src/main/java/org/jsoup/Connection.java:973
↓ 56 callersMethodheader
Get the value of a header. If there is more than one header value with the same name, the headers are returned comma separated, per <a href="https://w
src/main/java/org/jsoup/Connection.java:582
↓ 53 callersMethodgetValue
Get the attribute value. Will return an empty string if the value is not set. @return the attribute value
src/main/java/org/jsoup/nodes/Attribute.java:95
↓ 52 callersMethodcheck
(Elements result, String...expectedContent )
src/test/java/org/jsoup/select/CssTest.java:200
↓ 52 callersMethodconsume
Consume one character off queue. @return first character on queue.
src/main/java/org/jsoup/parser/TokenQueue.java:38
↓ 51 callersMethodabsUrl
Get an absolute URL from a URL attribute that may be relative (such as an <code>&lt;a href&gt;</code> or <code>&lt;img src&gt;</code>). <p> E.g.: <cod
src/main/java/org/jsoup/nodes/Node.java:260
↓ 51 callersMethodchildren
Get this element's child elements. <p> This is effectively a filter on {@link #childNodes()} to get Element nodes. </p> @return child elements. If thi
src/main/java/org/jsoup/nodes/Element.java:398
↓ 51 callersMethodsourceRange
Get the source range (start and end positions) in the original input source from which this node was parsed. Position tracking must be enabled pr
src/main/java/org/jsoup/nodes/Node.java:891
↓ 50 callersMethodgetFile
(String resourceName)
src/test/java/org/jsoup/integration/ParseTest.java:129
↓ 49 callersMethodsyntax
Get the document's current output syntax. @return current syntax
src/main/java/org/jsoup/nodes/Document.java:417
↓ 48 callersMethodequals
()
src/test/java/org/jsoup/parser/TagTest.java:257
↓ 47 callersMethodcharset
Get the character set name of the response, derived from the content-type header. @return character set name if set, <b>null</b> if not
src/main/java/org/jsoup/Connection.java:950
↓ 47 callersMethodnamespace
Get this tag's namespace. @return the tag's namespace
src/main/java/org/jsoup/parser/Tag.java:140
↓ 47 callersMethodtagSet
Set a custom TagSet to use for this Parser. This allows you to define your own tags, and control how they are parsed. For example, you can set a
src/main/java/org/jsoup/parser/Parser.java:232
↓ 46 callersMethodattr
Set an attribute value on this element. If this element already has an attribute with the key, its value is updated; otherwise, a new attribute is add
src/main/java/org/jsoup/nodes/Element.java:281
↓ 46 callersMethodvalueOf
Tag.valueOf with the normalName via the token.normalName, to save redundant lower-casing passes. Provide a null normalName unless we already have
src/main/java/org/jsoup/parser/TagSet.java:136
↓ 45 callersMethodappendChild
Insert a node to the end of this Element's children. The incoming node will be re-parented. @param child node to add. @return this Element, for chain
src/main/java/org/jsoup/nodes/Element.java:815
↓ 45 callersMethodgetErrors
Retrieve the parse errors, if any, from the last parse. @return list of parse errors, up to the size of the maximum errors tracked. @see #setTrackErro
src/main/java/org/jsoup/parser/Parser.java:159
↓ 45 callersMethodparent
()
src/main/java/org/jsoup/nodes/Element.java:329
↓ 45 callersMethodtext
Set the text of the {@code body} of this document. Any existing nodes within the body will be cleared. @param text un-encoded text @return t
src/main/java/org/jsoup/nodes/Document.java:239
↓ 44 callersMethodnodeName
()
src/test/java/org/jsoup/nodes/CommentTest.java:12
↓ 43 callersMethodconsume
Consume one character off the queue. @return first character on queue, or EOF if the queue is empty.
src/main/java/org/jsoup/parser/CharacterReader.java:294
↓ 40 callersMethodattr
Get an attribute's value by its key. <b>Case insensitive</b> <p> To get an absolute URL from an attribute that may be a relative URL, prefix the key w
src/main/java/org/jsoup/nodes/Node.java:124
↓ 40 callersMethodeofError
(TokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:283
↓ 40 callersMethodhasNext
()
src/main/java/org/jsoup/nodes/Attributes.java:433
↓ 40 callersMethodsettings
Update the ParseSettings of this Parser, to control the case sensitivity of tags and attributes. @param settings the new settings @return this Parser
src/main/java/org/jsoup/parser/Parser.java:188
↓ 39 callersMethodgetElementById
Find an element by ID, including or under this element. <p> Note that this finds the first matching ID, starting with this element. If you search down
src/main/java/org/jsoup/nodes/Element.java:1297
↓ 39 callersMethodinsertElementFor
(Token.StartTag startTag)
src/main/java/org/jsoup/parser/XmlTreeBuilder.java:146
↓ 39 callersMethodprettyPrint
Get if pretty printing is enabled. Default is true. If disabled, the HTML output methods will not re-format the output, and the output will generally
src/main/java/org/jsoup/nodes/Document.java:441
↓ 38 callersMethodattributes
()
src/main/java/org/jsoup/nodes/Element.java:124
↓ 38 callersMethodgetWholeText
Get the (unencoded) text of this text node, including any newlines and spaces present in the original. @return text
src/main/java/org/jsoup/nodes/TextNode.java:50
↓ 38 callersMethodheaders
Get the values of a header. @param name header name, case-insensitive. @return a list of values for this header, or an empty list if not set.
src/main/java/org/jsoup/Connection.java:589
↓ 38 callersMethodisKnownTag
Get if this is a pre-defined tag in the TagSet, or was auto created on parsing. @return if a known tag
src/main/java/org/jsoup/parser/Tag.java:288
↓ 38 callersMethodnext
Get the immediate next element sibling of each element in this list. @return next element siblings.
src/main/java/org/jsoup/select/Elements.java:516
↓ 38 callersMethodrequest
Get the request object associated with this connection @return request
src/main/java/org/jsoup/Connection.java:503
↓ 38 callersMethodtrackSeen
(Node node, StringBuilder actual)
src/test/java/org/jsoup/nodes/NodeIteratorTest.java:252
↓ 37 callersMethodconsumeTo
Reads characters up to the specific char. @param c the delimiter @return the chars read
src/main/java/org/jsoup/parser/CharacterReader.java:363
↓ 37 callersMethodisTrue
Validates that the value is true @param val object to test @throws ValidationException if the object is not true
src/main/java/org/jsoup/helper/Validate.java:112
↓ 37 callersMethodselect
Find elements that match the {@link Selector} CSS query, with this element as the starting context. Matched elements may include this element, or any
src/main/java/org/jsoup/nodes/Element.java:518
↓ 36 callersMethodchildNodes
Get this node's children. Presented as an unmodifiable list: new children can not be added, but the child nodes themselves can be manipulated.
src/main/java/org/jsoup/nodes/Node.java:285
↓ 36 callersMethodcompile
Compile a regex, using re2j if enabled and available; otherwise JDK regex. @param regex the regex to compile @return the compiled regex
src/main/java/org/jsoup/helper/Regex.java:35
↓ 36 callersMethodresolve
Create a new absolute URL, from a provided existing absolute URL and a relative URL component. @param base the existing absolute base URL @param relUr
src/main/java/org/jsoup/internal/StringUtil.java:293
↓ 36 callersMethodvalue
Update the value of a keyval @param value the new value @return this KeyVal, for chaining
src/main/java/org/jsoup/Connection.java:1087
↓ 35 callersMethodbasic
<p> This safelist allows a fuller range of text nodes: <code>a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small,
src/main/java/org/jsoup/safety/Safelist.java:133
next →1–100 of 3,613, ranked by callers