MCPcopy Create free account

hub / github.com/jhy/jsoup / functions

Functions3,613 in github.com/jhy/jsoup

↓ 35 callersMethodchild
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 callersMethodcssSelector
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 callersMethodasStartTag
()
src/main/java/org/jsoup/parser/Token.java:516
↓ 34 callersMethodbody
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 callersMethodnameIs
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 callersMethodparent
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 callersMethodcurrentElementIs
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 callersMethodemitDoctypePending
()
src/main/java/org/jsoup/parser/Tokeniser.java:255
↓ 33 callersMethodhasClass
(String className)
src/main/java/org/jsoup/nodes/Element.java:1818
↓ 33 callersMethodnewRequest
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 callersMethodchildNodeSize
()
src/main/java/org/jsoup/nodes/Element.java:153
↓ 32 callersMethodpop
Removes the last Element from the stack, hits onNodeClosed, and then returns it. @return
src/main/java/org/jsoup/parser/TreeBuilder.java:158
↓ 31 callersMethodaddAttributes
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 callersMethodcollect
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 callersMethodescapeMode
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 callersMethodouterHtml
()
src/main/java/org/jsoup/nodes/Document.java:229
↓ 31 callersMethodparseBodyFragment
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 callersMethodsetTrackErrors
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 callersMethodmethod
Get the request method, which defaults to <code>GET</code> @return method
src/main/java/org/jsoup/Connection.java:562
↓ 30 callersMethodname
Get this tag's name. @return the tag's name
src/main/java/org/jsoup/parser/Tag.java:88
↓ 30 callersMethodparseInput
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 callersMethodwholeText
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 callersMethodanythingElse
(Token t, HtmlTreeBuilder tb)
src/main/java/org/jsoup/parser/HtmlTreeBuilderState.java:74
↓ 29 callersMethodendSourceRange
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 callersMethodisHexDigit
(char c)
src/main/java/org/jsoup/internal/StringUtil.java:406
↓ 29 callersMethodnextSibling
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 callersMethodborrowBuilder
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 callersMethodisEmpty
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 callersMethodnormalName
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 callersMethodreleaseBuilder
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 callersMethodreset
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 callersMethodstart
Starts the Netty origin and proxy harnesses
src/test/java/org/jsoup/integration/TestServer.java:36
↓ 28 callersMethodtext
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 callersMethodtext
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 callersMethodasEndTag
()
src/main/java/org/jsoup/parser/Token.java:524
↓ 27 callersMethodlowerCase
Drops the input string to lower case.
src/main/java/org/jsoup/internal/Normalizer.java:15
↓ 27 callersMethodparse
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 callersMethodrelaxed
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 callersMethodadvanceTransition
(TokeniserState newState)
src/main/java/org/jsoup/parser/Tokeniser.java:126
↓ 26 callersMethodcurrentElement
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 callersMethodinsertChildren
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 callersMethodis
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 callersMethodparser
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 callersMethodtrim
(String s, int width)
src/main/java/org/jsoup/examples/ListLinks.java:54
↓ 25 callersMethodadd
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 callersMethodattributes
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 callersMethodcharset
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 callersMethodsexpr
(String query)
src/test/java/org/jsoup/select/EvaluatorDebug.java:50
↓ 25 callersMethodwrite
(String text)
src/test/java/org/jsoup/integration/netty/TestResponse.java:130
↓ 24 callersMethodHtml
Returns a mutable copy of the default HTML tag set.
src/main/java/org/jsoup/parser/TagSet.java:34
↓ 24 callersMethodcurrent
Get the char at the current position. @return char
src/main/java/org/jsoup/parser/CharacterReader.java:285
↓ 24 callersMethodentrySet
()
src/main/java/org/jsoup/nodes/Attributes.java:625
↓ 24 callersMethodhasKey
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 callersMethodisStartTag
()
src/main/java/org/jsoup/parser/Token.java:512
↓ 24 callersMethodmatcher
(CharSequence input)
src/main/java/org/jsoup/helper/Regex.java:94
↓ 24 callersMethodprocessEndTag
(String name)
src/main/java/org/jsoup/parser/TreeBuilder.java:147
↓ 23 callersMethodadvance
Drops the next character off the queue.
src/main/java/org/jsoup/parser/TokenQueue.java:45
↓ 23 callersMethodisDigit
(char c)
src/main/java/org/jsoup/internal/StringUtil.java:402
↓ 23 callersMethodisEmpty
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 callersMethodlast
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 callersMethodnextElementSibling
()
src/test/java/org/jsoup/nodes/ElementTest.java:256
↓ 23 callersMethodnotNullParam
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 callersMethodownText
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 callersMethodpadding
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 callersMethodtimeout
Get the request timeout, in milliseconds. @return the timeout in milliseconds.
src/main/java/org/jsoup/Connection.java:722
↓ 22 callersMethodevaluatorOf
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 callersMethodforEach
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 callersMethodgetElementsByTag
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 callersMethodisTracked
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 callersMethodnormaliseWhitespace
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 callersMethodappendElement
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 callersMethodframesetOk
(boolean framesetOk)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:270
↓ 21 callersMethodhasSameValue
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 callersMethodhead
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 callersMethodisValid
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 callersMethodtransition
(HtmlTreeBuilderState state)
src/main/java/org/jsoup/parser/HtmlTreeBuilder.java:254
↓ 21 callersMethodunescape
Un-escape an HTML escaped string. That is, {@code &lt;} 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 callersMethodaccumulatePositions
(Node node, StringBuilder sb)
src/test/java/org/jsoup/parser/PositionTest.java:138
↓ 20 callersMethodaddHeader
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 callersMethodchildNodeSize
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 callersMethodfirstElementChild
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 callersMethodfromJsoup
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 callersMethodhasAttr
()
src/test/java/org/jsoup/select/ElementsTest.java:53
↓ 20 callersMethodisEndTag
()
src/main/java/org/jsoup/parser/Token.java:520
↓ 20 callersMethodlineNumber
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 callersMethodmatches
(char c)
src/main/java/org/jsoup/parser/CharacterReader.java:513
↓ 20 callersMethodparser
Get the parser that was used to parse this document. @return the parser
src/main/java/org/jsoup/nodes/Document.java:565
↓ 20 callersMethodpopStackToClose
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 callersMethodselectXpath
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 callersMethodsiblingIndex
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 callersMethodstream
(String data)
src/test/java/org/jsoup/helper/DataUtilTest.java:42
↓ 19 callersMethodaddAll
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 callersMethodappend
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 callersMethodbaseUri
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 callersMethodcolumnNumber
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 callersMethodescape
HTML escape an input string. That is, {@code <} is returned as {@code &lt;}. The escaped string is suitable for use both in attributes and in tex
src/main/java/org/jsoup/nodes/Entities.java:168
↓ 19 callersMethodget
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 callersMethodgetName
Get this tag's name. @return the tag's name
src/main/java/org/jsoup/parser/Tag.java:80
↓ 19 callersMethodnotEmptyParam
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 callersMethodselectNodes
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
← previousnext →101–200 of 3,613, ranked by callers