Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jhy/jsoup
/ functions
Functions
3,613 in github.com/jhy/jsoup
⨍
Functions
3,613
◇
Types & classes
326
↓ 35 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 me
src/main/java/org/jsoup/nodes/Element.java:359
↓ 35 callers
Method
cssSelector
Get a CSS selector that will uniquely select this element. <p> If the element has an ID, returns #id; otherwise returns the parent (if any)
src/main/java/org/jsoup/nodes/Element.java:1115
↓ 34 callers
Method
asStartTag
()
src/main/java/org/jsoup/parser/Token.java:516
↓ 34 callers
Method
body
Get the body of the response as a plain String. <p>Will throw an UncheckedIOException if the body has not been buffered and an error occurs
src/main/java/org/jsoup/Connection.java:998
↓ 34 callers
Method
nameIs
Test if this node has the specified normalized name, in any namespace. @param normalName a normalized element name (e.g. {@code div}). @return true if
src/main/java/org/jsoup/nodes/Node.java:69
↓ 34 callers
Method
parent
Gets this node's parent node. This is always an Element. @return parent node; or null if no parent. @see #hasParent() @see #parentEleme
src/main/java/org/jsoup/nodes/Node.java:331
↓ 33 callers
Method
currentElementIs
Checks if the Current Element's normal name equals the supplied name, in the HTML namespace. @param normalName name to check @return true if
src/main/java/org/jsoup/parser/TreeBuilder.java:216
↓ 33 callers
Method
emitDoctypePending
()
src/main/java/org/jsoup/parser/Tokeniser.java:255
↓ 33 callers
Method
hasClass
(String className)
src/main/java/org/jsoup/nodes/Element.java:1818
↓ 33 callers
Method
newRequest
Creates a new request, using this Connection as the session-state and to initialize the connection settings (which may then be independently chan
src/main/java/org/jsoup/Connection.java:87
↓ 32 callers
Method
childNodeSize
()
src/main/java/org/jsoup/nodes/Element.java:153
↓ 32 callers
Method
pop
Removes the last Element from the stack, hits onNodeClosed, and then returns it. @return
src/main/java/org/jsoup/parser/TreeBuilder.java:158
↓ 31 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>addAttributes
src/main/java/org/jsoup/safety/Safelist.java:302
↓ 31 callers
Method
collect
Build a list of elements, by visiting the root and every descendant of root, and testing it against the Evaluator. @param eval Evaluator to test
src/main/java/org/jsoup/select/Collector.java:30
↓ 31 callers
Method
escapeMode
Get the document's current entity escape mode: <ul> <li><code>xhtml</code>, the minimal named entities in XHTML / XML</li>
src/main/java/org/jsoup/nodes/Document.java:366
↓ 31 callers
Method
outerHtml
()
src/main/java/org/jsoup/nodes/Document.java:229
↓ 31 callers
Method
parseBodyFragment
Parse a fragment of HTML, with the assumption that it forms the {@code body} of the HTML. @param bodyHtml body HTML fragment @param baseUri
src/main/java/org/jsoup/Jsoup.java:296
↓ 31 callers
Method
setTrackErrors
Enable or disable parse error tracking for the next parse. @param maxErrors the maximum number of errors to track. Set to 0 to disable. @return this,
src/main/java/org/jsoup/parser/Parser.java:149
↓ 30 callers
Method
method
Get the request method, which defaults to <code>GET</code> @return method
src/main/java/org/jsoup/Connection.java:562
↓ 30 callers
Method
name
Get this tag's name. @return the tag's name
src/main/java/org/jsoup/parser/Tag.java:88
↓ 30 callers
Method
parseInput
Parse the contents of a String. @param html HTML to parse @param baseUri base URI of document (i.e. original fetch location), for resolving
src/main/java/org/jsoup/parser/Parser.java:76
↓ 30 callers
Method
wholeText
Get the decoded text of this element and its children, preserving source whitespace and newlines from text nodes. Unlike {@link #text()}, no sepa
src/main/java/org/jsoup/nodes/Element.java:1624
↓ 29 callers
Method
anythingElse
(Token t, HtmlTreeBuilder tb)
src/main/java/org/jsoup/parser/HtmlTreeBuilderState.java:74
↓ 29 callers
Method
endSourceRange
Get the source range (start and end positions) of the end (closing) tag for this Element. Position tracking must be enabled prior to parsing the
src/main/java/org/jsoup/nodes/Element.java:1945
↓ 29 callers
Method
isHexDigit
(char c)
src/main/java/org/jsoup/internal/StringUtil.java:406
↓ 29 callers
Method
nextSibling
Get this node's next sibling. @return next sibling, or {@code null} if this is the last sibling
src/main/java/org/jsoup/nodes/Node.java:651
↓ 28 callers
Method
borrowBuilder
Maintains cached StringBuilders in a flyweight pattern, to minimize new StringBuilder GCs. The StringBuilder is prevented from growing too large. <p>
src/main/java/org/jsoup/internal/StringUtil.java:351
↓ 28 callers
Method
isEmpty
Tests if all the content has been read. @return true if nothing left to read.
src/main/java/org/jsoup/parser/CharacterReader.java:272
↓ 28 callers
Method
normalName
Get the normalized name of this Element's tag. This will always be the lower-cased version of the tag, regardless of the tag case preserving setting o
src/main/java/org/jsoup/nodes/Element.java:179
↓ 28 callers
Method
releaseBuilder
Release a borrowed builder. Care must be taken not to use the builder after it has been returned, as its contents may be changed by this method, or by
src/main/java/org/jsoup/internal/StringUtil.java:361
↓ 28 callers
Method
reset
Reset the data represent by this token, for reuse. Prevents the need to create transfer objects for every piece of data, which immediately get GCed.
src/main/java/org/jsoup/parser/Token.java:29
↓ 28 callers
Method
start
Starts the Netty origin and proxy harnesses
src/test/java/org/jsoup/integration/TestServer.java:36
↓ 28 callers
Method
text
Get the text content of this text node. @return Unencoded, normalised text. @see TextNode#getWholeText()
src/main/java/org/jsoup/nodes/TextNode.java:32
↓ 28 callers
Method
text
Get the combined text of all the matched elements. <p> Note that it is possible to get repeats if the matched elements contain both parent elements an
src/main/java/org/jsoup/select/Elements.java:229
↓ 27 callers
Method
asEndTag
()
src/main/java/org/jsoup/parser/Token.java:524
↓ 27 callers
Method
lowerCase
Drops the input string to lower case.
src/main/java/org/jsoup/internal/Normalizer.java:15
↓ 27 callers
Method
parse
Parse a CSS query into an Evaluator. If you are evaluating the same query repeatedly, it may be more efficient to parse it once and reuse the Eva
src/main/java/org/jsoup/select/QueryParser.java:54
↓ 27 callers
Method
relaxed
This safelist allows a full range of text and structural body HTML: <code>a, b, blockquote, br, caption, cite, code, col, colgroup, dd, div, dl,
src/main/java/org/jsoup/safety/Safelist.java:177
↓ 26 callers
Method
advanceTransition
(TokeniserState newState)
src/main/java/org/jsoup/parser/Tokeniser.java:126
↓ 26 callers
Method
currentElement
Get the current element (last on the stack). If all items have been removed, returns the document instead (which might not actually be on the sta
src/main/java/org/jsoup/parser/TreeBuilder.java:206
↓ 26 callers
Method
insertChildren
Inserts the given child nodes into this element at the specified index. Current nodes will be shifted to the right. The inserted nodes will be moved f
src/main/java/org/jsoup/nodes/Element.java:885
↓ 26 callers
Method
is
Checks if this element matches the given {@link Selector} CSS query. Also knows as {@code matches()} in the Web DOM. @param cssQuery a {@link Selecto
src/main/java/org/jsoup/nodes/Element.java:725
↓ 26 callers
Method
parser
Specify the parser to use when parsing the document. @param parser parser to use. @return this Request, for chaining
src/main/java/org/jsoup/Connection.java:885
↓ 26 callers
Method
trim
(String s, int width)
src/main/java/org/jsoup/examples/ListLinks.java:54
↓ 25 callers
Method
add
Adds a new attribute. Will produce duplicates if the key already exists. @see Attributes#put(String, String)
src/main/java/org/jsoup/nodes/Attributes.java:138
↓ 25 callers
Method
attributes
Get each of the Element's attributes. @return attributes (which implements Iterable, with the same order as presented in the original HTML).
src/main/java/org/jsoup/nodes/Node.java:141
↓ 25 callers
Method
charset
Set the output character set of this Document. This method is equivalent to {@link OutputSettings#charset(java.nio.charset.Charset) OutputSetting
src/main/java/org/jsoup/nodes/Document.java:268
↓ 25 callers
Method
sexpr
(String query)
src/test/java/org/jsoup/select/EvaluatorDebug.java:50
↓ 25 callers
Method
write
(String text)
src/test/java/org/jsoup/integration/netty/TestResponse.java:130
↓ 24 callers
Method
Html
Returns a mutable copy of the default HTML tag set.
src/main/java/org/jsoup/parser/TagSet.java:34
↓ 24 callers
Method
current
Get the char at the current position. @return char
src/main/java/org/jsoup/parser/CharacterReader.java:285
↓ 24 callers
Method
entrySet
()
src/main/java/org/jsoup/nodes/Attributes.java:625
↓ 24 callers
Method
hasKey
Tests if these attributes contain an attribute with this key. @param key case-sensitive key to check for @return true if key exists, false o
src/main/java/org/jsoup/nodes/Attributes.java:303
↓ 24 callers
Method
isStartTag
()
src/main/java/org/jsoup/parser/Token.java:512
↓ 24 callers
Method
matcher
(CharSequence input)
src/main/java/org/jsoup/helper/Regex.java:94
↓ 24 callers
Method
processEndTag
(String name)
src/main/java/org/jsoup/parser/TreeBuilder.java:147
↓ 23 callers
Method
advance
Drops the next character off the queue.
src/main/java/org/jsoup/parser/TokenQueue.java:45
↓ 23 callers
Method
isDigit
(char c)
src/main/java/org/jsoup/internal/StringUtil.java:402
↓ 23 callers
Method
isEmpty
Test if this Attributes list is empty. <p>This does not include internal attributes, such as user data.</p>
src/main/java/org/jsoup/nodes/Attributes.java:356
↓ 23 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:620
↓ 23 callers
Method
nextElementSibling
()
src/test/java/org/jsoup/nodes/ElementTest.java:256
↓ 23 callers
Method
notNullParam
Validates that the parameter is not null @param obj the parameter to test @param param the name of the parameter, for presentation in the validation e
src/main/java/org/jsoup/helper/Validate.java:29
↓ 23 callers
Method
ownText
Gets the (normalized) text owned by this element only; does not get the combined text of all children. <p> For example, given HTML {@code <p>Hello <b>
src/main/java/org/jsoup/nodes/Element.java:1668
↓ 23 callers
Method
padding
Returns space padding (up to the default max of 30). Use {@link #padding(int, int)} to specify a different limit. @param width amount of padding desir
src/main/java/org/jsoup/internal/StringUtil.java:123
↓ 23 callers
Method
timeout
Get the request timeout, in milliseconds. @return the timeout in milliseconds.
src/main/java/org/jsoup/Connection.java:722
↓ 22 callers
Method
evaluatorOf
Parse a CSS query into an Evaluator. If you are evaluating the same query repeatedly, it may be more efficient to parse it once and reuse the Eva
src/main/java/org/jsoup/select/Selector.java:284
↓ 22 callers
Method
forEach
Perform the supplied action on this Element and each of its descendant Elements, during a depth-first traversal. Elements may be inspected, chang
src/main/java/org/jsoup/nodes/Element.java:2085
↓ 22 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:1281
↓ 22 callers
Method
isTracked
Test if this source range was tracked during parsing. @return true if this was tracked during parsing, false otherwise (and all fields will be {@code
src/main/java/org/jsoup/nodes/Range.java:71
↓ 22 callers
Method
normaliseWhitespace
Normalise the whitespace within this string; multiple spaces collapse to a single, and all whitespace characters (e.g. newline, tab) convert to a simp
src/main/java/org/jsoup/internal/StringUtil.java:222
↓ 21 callers
Method
appendElement
Create a new element by tag name, and add it as this Element's last child. @param tagName the name of the tag (e.g. {@code div}). @return the new ele
src/main/java/org/jsoup/nodes/Element.java:920
↓ 21 callers
Method
framesetOk
(boolean framesetOk)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:270
↓ 21 callers
Method
hasSameValue
Check if this node has the same content as another node. A node is considered the same if its name, attributes and content match the other node; parti
src/main/java/org/jsoup/nodes/Node.java:941
↓ 21 callers
Method
head
Get this document's {@code head} element. <p> As a side effect, if this Document does not already have an HTML structure, it will be created
src/main/java/org/jsoup/nodes/Document.java:134
↓ 21 callers
Method
isValid
Test if the input body HTML has only tags and attributes allowed by the Safelist. Useful for form validation. <p> This method is intended to
src/main/java/org/jsoup/Jsoup.java:434
↓ 21 callers
Method
transition
(HtmlTreeBuilderState state)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:254
↓ 21 callers
Method
unescape
Un-escape an HTML escaped string. That is, {@code <} is returned as {@code <}. @param string the HTML string to un-escape @return the unescaped st
src/main/java/org/jsoup/nodes/Entities.java:314
↓ 20 callers
Method
accumulatePositions
(Node node, StringBuilder sb)
src/test/java/org/jsoup/parser/PositionTest.java:138
↓ 20 callers
Method
addHeader
Add a header. The header will be added regardless of whether a header with the same name already exists. <p>For compatibility, if the content of the h
src/main/java/org/jsoup/Connection.java:611
↓ 20 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:313
↓ 20 callers
Method
firstElementChild
Gets the first child of this Element that is an Element, or {@code null} if there is none. @return the first Element child node, or null. @s
src/main/java/org/jsoup/nodes/Element.java:1250
↓ 20 callers
Method
fromJsoup
Convert a jsoup Document to a W3C Document. The created nodes will link back to the original jsoup nodes in the user property {@link #SourceProperty}
src/main/java/org/jsoup/helper/W3CDom.java:180
↓ 20 callers
Method
hasAttr
()
src/test/java/org/jsoup/select/ElementsTest.java:53
↓ 20 callers
Method
isEndTag
()
src/main/java/org/jsoup/parser/Token.java:520
↓ 20 callers
Method
lineNumber
Get the current line number (that the reader has consumed to). Starts at line #1. @return the current line number, or 1 if line tracking is not e
src/main/java/org/jsoup/parser/CharacterReader.java:191
↓ 20 callers
Method
matches
(char c)
src/main/java/org/jsoup/parser/CharacterReader.java:513
↓ 20 callers
Method
parser
Get the parser that was used to parse this document. @return the parser
src/main/java/org/jsoup/nodes/Document.java:565
↓ 20 callers
Method
popStackToClose
If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence. If not found, skips. @param endTag tag to clo
src/main/java/org/jsoup/parser/XmlTreeBuilder.java:264
↓ 20 callers
Method
selectXpath
Evaluate an XPath query against the supplied document, and return the results. @param xpath an XPath query @param doc the document to evalua
src/main/java/org/jsoup/helper/W3CDom.java:266
↓ 20 callers
Method
siblingIndex
Get the list index of this node in its node sibling list. E.g. if this is the first node sibling, returns 0. @return position in node sibling list @se
src/main/java/org/jsoup/nodes/Node.java:685
↓ 20 callers
Method
stream
(String data)
src/test/java/org/jsoup/helper/DataUtilTest.java:42
↓ 19 callers
Method
addAll
Add all the attributes from the incoming set to this set. @param incoming attributes to add to these attributes.
src/main/java/org/jsoup/nodes/Attributes.java:364
↓ 19 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:995
↓ 19 callers
Method
baseUri
Get the base URI that applies to this node. Will return an empty string if not defined. Used to make relative links absolute. @return base
src/main/java/org/jsoup/nodes/Node.java:220
↓ 19 callers
Method
columnNumber
Get the current column number (that the reader has consumed to). Starts at column #1. @return the current column number @since 1.14.3 @
src/main/java/org/jsoup/parser/CharacterReader.java:213
↓ 19 callers
Method
escape
HTML escape an input string. That is, {@code <} is returned as {@code <}. The escaped string is suitable for use both in attributes and in tex
src/main/java/org/jsoup/nodes/Entities.java:168
↓ 19 callers
Method
get
Get an attribute value by key. @param key the (case-sensitive) attribute key @return the attribute value if set; or empty string if not set
src/main/java/org/jsoup/nodes/Attributes.java:106
↓ 19 callers
Method
getName
Get this tag's name. @return the tag's name
src/main/java/org/jsoup/parser/Tag.java:80
↓ 19 callers
Method
notEmptyParam
Validates that the string parameter is not null and is not empty @param string the string to test @param param the name of the parameter, for presenta
src/main/java/org/jsoup/helper/Validate.java:186
↓ 19 callers
Method
selectNodes
Find nodes that match the supplied {@link Evaluator}, with this element as the starting context. Matched nodes may include this element, or any o
src/main/java/org/jsoup/nodes/Element.java:619
← previous
next →
101–200 of 3,613, ranked by callers