Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code4craft/jsoup-learning
/ functions
Functions
1,337 in github.com/code4craft/jsoup-learning
⨍
Functions
1,337
◇
Types & classes
164
↓ 377 callers
Method
select
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:251
↓ 320 callers
Method
parse
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:30
↓ 242 callers
Method
size
()
src/main/java/org/jsoup/select/Elements.java:505
↓ 239 callers
Method
transition
(ITokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:89
↓ 185 callers
Method
first
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:465
↓ 175 callers
Method
error
(ITokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:199
↓ 170 callers
Method
get
Execute the request as a GET, and parse the result. @return parsed Document @throws java.net.MalformedURLException if the request URL is not a HTTP or
src/main/java/org/jsoup/Connection.java:180
↓ 167 callers
Method
equals
(Object o)
src/main/java/org/jsoup/parser/Tag.java:181
↓ 151 callers
Method
append
Add inner HTML to this element. The supplied HTML will be parsed, and each node appended to the end of the children. @param html HTML to add inside th
src/main/java/org/jsoup/nodes/Element.java:359
↓ 121 callers
Method
get
(int index)
src/main/java/org/jsoup/select/Elements.java:537
↓ 113 callers
Method
process
(StringReader reader)
src/main/java/us/codecraft/learning/automata/ABStateMachine.java:8
↓ 95 callers
Method
body
Accessor to the document's {@code body} element. @return {@code body}
src/main/java/org/jsoup/nodes/Document.java:59
↓ 94 callers
Method
add
(Element element)
src/main/java/org/jsoup/select/Elements.java:517
↓ 84 callers
Method
text
()
src/test/java/org/jsoup/select/ElementsTest.java:95
↓ 82 callers
Method
notNull
Validates that the object is not null @param obj object to test
src/main/java/org/jsoup/helper/Validate.java:14
↓ 82 callers
Method
stripNewlines
(String text)
src/test/java/org/jsoup/TextUtil.java:8
↓ 80 callers
Method
tagName
Get the name of the tag for this element. E.g. {@code div} @return the tag name
src/main/java/org/jsoup/nodes/Element.java:63
↓ 71 callers
Method
emit
(Token token)
src/main/java/org/jsoup/parser/Tokeniser.java:53
↓ 68 callers
Method
in
(String needle, String... haystack)
src/main/java/org/jsoup/helper/StringUtil.java:134
↓ 67 callers
Method
html
()
src/test/java/org/jsoup/select/ElementsTest.java:108
↓ 65 callers
Method
insert
(Token.StartTag startTag)
src/main/java/org/jsoup/parser/XmlTreeBuilder.java:50
↓ 61 callers
Method
name
()
src/main/java/org/jsoup/parser/Token.java:81
↓ 60 callers
Method
id
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:104
↓ 52 callers
Method
valueOf
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:48
↓ 51 callers
Method
check
(Elements result, String...expectedContent )
src/test/java/org/jsoup/select/CssTest.java:192
↓ 50 callers
Method
consume
Consume one character off queue. @return first character on queue.
src/main/java/org/jsoup/parser/TokenQueue.java:154
↓ 50 callers
Method
nodeName
Get the node name of this node. Use for debugging purposes and not logic switching (for that, use instanceof). @return node name
src/main/java/org/jsoup/nodes/Node.java:56
↓ 48 callers
Method
notEmpty
Validates that the string is not empty @param string the string to test
src/main/java/org/jsoup/helper/Validate.java:90
↓ 45 callers
Method
html
()
src/test/java/org/jsoup/nodes/AttributeTest.java:8
↓ 45 callers
Method
put
Set a new attribute, or replace an existing one by key. @param key attribute key @param value attribute value
src/main/java/org/jsoup/nodes/Attributes.java:45
↓ 39 callers
Method
eofError
(ITokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:204
↓ 38 callers
Method
currentElement
()
src/main/java/org/jsoup/parser/TreeBuilder.java:57
↓ 38 callers
Method
data
Add a data parameter to the request @param keyval data to add. @return this Request, for chaining
src/main/java/org/jsoup/Connection.java:417
↓ 34 callers
Method
size
Get the number of attributes in this set. @return size
src/main/java/org/jsoup/nodes/Attributes.java:85
↓ 32 callers
Method
advanceTransition
(ITokeniserState state)
src/main/java/org/jsoup/parser/Tokeniser.java:93
↓ 32 callers
Method
text
Gets the combined text of this element and all its children. <p> For example, given HTML {@code <p>Hello <b>there</b> now!</p>}, {@code p.text()} retu
src/main/java/org/jsoup/nodes/Element.java:817
↓ 31 callers
Method
emitDoctypePending
()
src/main/java/org/jsoup/parser/Tokeniser.java:181
↓ 30 callers
Method
absUrl
Get an absolute URL from a URL attribute that may be relative (i.e. an <code><a href></code> or <code><img src></code>). <p/> E.g.: <code>String
src/main/java/org/jsoup/nodes/Node.java:171
↓ 30 callers
Method
attr
()
src/test/java/org/jsoup/select/ElementsTest.java:64
↓ 29 callers
Method
anythingElse
(Token t, HtmlTreeBuilder tb)
src/main/java/org/jsoup/parser/HtmlTreeBuilderState.java:60
↓ 29 callers
Method
toString
()
src/main/java/org/jsoup/parser/Tag.java:217
↓ 28 callers
Method
attr
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:115
↓ 28 callers
Method
connect
Creates a new {@link Connection} to a URL. Use to fetch and parse a HTML page. <p> Use examples: <ul> <li><code>Document doc = Jsoup.connect("http://
src/main/java/org/jsoup/Jsoup.java:72
↓ 28 callers
Method
consume
()
src/main/java/org/jsoup/parser/CharacterReader.java:37
↓ 27 callers
Method
asStartTag
()
src/main/java/org/jsoup/parser/Token.java:236
↓ 27 callers
Method
contains
(Object o)
src/main/java/org/jsoup/select/Elements.java:509
↓ 27 callers
Method
outputSettings
Get the document's current output settings. @return the document's current output settings.
src/main/java/org/jsoup/nodes/Document.java:355
↓ 27 callers
Method
parent
Gets this node's parent node. @return parent node; or null if no parent.
src/main/java/org/jsoup/nodes/Node.java:245
↓ 27 callers
Method
title
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:67
↓ 26 callers
Method
matchChomp
Tests if the queue matches the sequence (as with match), and if they do, removes the matched string from the queue. @param seq String to search for, a
src/main/java/org/jsoup/parser/TokenQueue.java:118
↓ 26 callers
Method
outerHtml
()
src/test/java/org/jsoup/select/ElementsTest.java:114
↓ 26 callers
Method
parent
()
src/main/java/org/jsoup/nodes/Element.java:137
↓ 26 callers
Method
trim
(String s, int width)
src/main/java/org/jsoup/examples/ListLinks.java:50
↓ 25 callers
Method
clean
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a white-list of permitted tags and attributes. @par
src/main/java/org/jsoup/Jsoup.java:197
↓ 25 callers
Method
current
()
src/main/java/org/jsoup/parser/CharacterReader.java:33
↓ 24 callers
Method
asEndTag
()
src/main/java/org/jsoup/parser/Token.java:244
↓ 24 callers
Method
last
Get the last matched element. @return The last matched element, or <code>null</code> if contents is empty.
src/main/java/org/jsoup/select/Elements.java:473
↓ 23 callers
Method
baseUri
Get the base URI of this node. @return base URI
src/main/java/org/jsoup/nodes/Node.java:130
↓ 23 callers
Method
children
Get this element's child elements. <p/> This is effectively a filter on {@link #childNodes()} to get Element nodes. @return child elements. If this el
src/main/java/org/jsoup/nodes/Element.java:182
↓ 23 callers
Method
getKey
Get the attribute key. @return the attribute key
src/main/java/org/jsoup/nodes/Attribute.java:32
↓ 23 callers
Method
remove
Remove (delete) this node from the DOM tree. If this node has children, they are also removed.
src/main/java/org/jsoup/nodes/Node.java:265
↓ 22 callers
Method
nodeName
()
src/main/java/org/jsoup/nodes/Element.java:53
↓ 21 callers
Method
appendChild
Add a node child node to this element. @param child node to add. @return this element, so that you can add more child nodes or elements.
src/main/java/org/jsoup/nodes/Element.java:261
↓ 21 callers
Method
getElementsByTag
Finds elements, including and recursively under this element, with the specified tag name. @param tagName The tag name to search for (case insensitive
src/main/java/org/jsoup/nodes/Element.java:547
↓ 20 callers
Method
collect
Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator. @param eval Evaluator to test elem
src/main/java/org/jsoup/select/Collector.java:22
↓ 20 callers
Method
html
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:1103
↓ 20 callers
Method
text
Set the text of the {@code body} of this document. Any existing nodes within the body will be cleared. @param text unencoded text @return th
src/main/java/org/jsoup/nodes/Document.java:188
↓ 19 callers
Method
attr
Get an attribute's value by its key. <p/> To get an absolute URL from an attribute that may be a relative URL, prefix the key with <code><b>abs</b></c
src/main/java/org/jsoup/nodes/Node.java:70
↓ 19 callers
Method
hasNext
()
src/main/java/org/jsoup/nodes/Attributes.java:228
↓ 19 callers
Method
isEndTag
()
src/main/java/org/jsoup/parser/Token.java:240
↓ 19 callers
Method
isStartTag
()
src/main/java/org/jsoup/parser/Token.java:232
↓ 19 callers
Method
isTrue
Validates that the value is true @param val object to test
src/main/java/org/jsoup/helper/Validate.java:33
↓ 19 callers
Method
next
()
src/main/java/org/jsoup/nodes/Attributes.java:236
↓ 18 callers
Method
addAttributes
Add a list of allowed attributes to a tag. (If an attribute is not allowed on an element, it will be removed.) <p/> E.g.: <code>addAttribute
src/main/java/org/jsoup/safety/Whitelist.java:207
↓ 18 callers
Method
childNode
Get a child node by its 0-based index. @param index index of child node @return the child node at this index. Throws a {@code IndexOutOfBoun
src/main/java/org/jsoup/nodes/Node.java:203
↓ 18 callers
Method
framesetOk
(boolean framesetOk)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:120
↓ 18 callers
Method
transition
(HtmlTreeBuilderState state)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:104
↓ 17 callers
Method
descendingIterator
Get an iterator that starts and the end of the list and works towards the start. @return an iterator that starts and the end of the list and works tow
src/main/java/org/jsoup/helper/DescendableLinkedList.java:47
↓ 17 callers
Method
getValue
Get the attribute value. @return the attribute value
src/main/java/org/jsoup/nodes/Attribute.java:49
↓ 17 callers
Method
parse
Parse the body of the response as a Document. @return a parsed Document @throws IOException on error
src/main/java/org/jsoup/Connection.java:473
↓ 16 callers
Method
getElementById
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:563
↓ 16 callers
Method
header
Get the value of a header. This is a simplified header model, where a header may only have one value. <p> Header names are case insensitive. @param na
src/main/java/org/jsoup/Connection.java:272
↓ 16 callers
Method
reconstructFormattingElements
()
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:593
↓ 16 callers
Method
unescape
(String string)
src/main/java/org/jsoup/nodes/Entities.java:110
↓ 15 callers
Method
appendAttributeValue
(String append)
src/main/java/org/jsoup/parser/Token.java:117
↓ 15 callers
Method
asComment
()
src/main/java/org/jsoup/parser/Token.java:252
↓ 15 callers
Method
childNodeSize
Get the number of child nodes that this node holds. @return the number of child nodes that this node holds.
src/main/java/org/jsoup/nodes/Node.java:233
↓ 15 callers
Method
connect
(String url)
src/main/java/org/jsoup/helper/HttpConnection.java:25
↓ 15 callers
Method
consumeToAny
(String... seq)
src/main/java/org/jsoup/parser/TokenQueue.java:223
↓ 15 callers
Method
isEmpty
()
src/main/java/org/jsoup/parser/CharacterReader.java:29
↓ 15 callers
Method
isEmpty
Get if this is an empty tag @return if this is an empty tag
src/main/java/org/jsoup/parser/Tag.java:117
↓ 15 callers
Method
matches
Tests if the next characters on the queue match the sequence. Case insensitive. @param seq String to check queue for. @return true if the next charact
src/main/java/org/jsoup/parser/TokenQueue.java:69
↓ 15 callers
Method
matchesLetter
()
src/main/java/org/jsoup/parser/CharacterReader.java:242
↓ 15 callers
Method
method
Get the request method @return method
src/main/java/org/jsoup/Connection.java:254
↓ 15 callers
Method
normaliseWhitespace
(String string)
src/main/java/org/jsoup/helper/StringUtil.java:106
↓ 15 callers
Method
siblingIndex
Get the list index of this node in its node sibling list. I.e. if this is the first node sibling, returns 0. @return position in node sibling list @se
src/main/java/org/jsoup/nodes/Node.java:516
↓ 15 callers
Method
url
Get the URL @return URL
src/main/java/org/jsoup/Connection.java:241
↓ 14 callers
Method
charset
Get the character set name of the response. @return character set name
src/main/java/org/jsoup/Connection.java:460
↓ 14 callers
Method
child
Get a child element of this element, by its 0-based index number. <p/> Note that an element can have both mixed Nodes and Elements as children. This m
src/main/java/org/jsoup/nodes/Element.java:170
↓ 14 callers
Method
hasAttr
Checks if any of the matched elements have this attribute set. @param attributeKey attribute key @return true if any of the elements have th
src/main/java/org/jsoup/select/Elements.java:75
next →
1–100 of 1,337, ranked by callers