Uses of Class
org.jsoup.nodes.Document
Package
Description
Contains the main
Jsoup
class, which provides convenient static access to the jsoup functionality.
Package containing classes supporting the core jsoup code.
HTML document structure nodes.
Contains the HTML parser, tag specifications, and HTML tokeniser.
Contains the jsoup HTML cleaner, and safelist definitions.
-
Uses of Document in org.jsoup
Modifier and TypeMethodDescriptionConnection.get()
Execute the request as a GET, and parse the result.Connection.Response.parse()
Read and parse the body of the response as a Document.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Jsoup.parse
(InputStream in, @Nullable String charsetName, String baseUri) Read an input stream, and parse it to a Document.static Document
Jsoup.parse
(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Read an input stream, and parse it to a Document.static Document
Jsoup.parse
(String html) Parse HTML into a Document.static Document
Jsoup.parse
(String html, String baseUri) Parse HTML into a Document.static Document
Parse HTML into a Document, using the provided Parser.static Document
Parse HTML into a Document, using the provided Parser.static Document
Fetch a URL, and parse it as HTML.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Parse the contents of a file as HTML.static Document
Jsoup.parseBodyFragment
(String bodyHtml) Parse a fragment of HTML, with the assumption that it forms thebody
of the HTML.static Document
Jsoup.parseBodyFragment
(String bodyHtml, String baseUri) Parse a fragment of HTML, with the assumption that it forms thebody
of the HTML.Connection.post()
Execute the request as a POST, and parse the result. -
Uses of Document in org.jsoup.helper
Modifier and TypeMethodDescriptionHttpConnection.get()
static Document
Loads and parses a file to a Document, with the HtmlParser.static Document
Loads and parses a file to a Document.static Document
DataUtil.load
(InputStream in, @Nullable String charsetName, String baseUri) Parses a Document from an input steam.static Document
DataUtil.load
(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Parses a Document from an input steam, using the provided Parser.static Document
Loads and parses a file to a Document, with the HtmlParser.static Document
Loads and parses a file to a Document.HttpConnection.Response.parse()
HttpConnection.post()
Modifier and TypeMethodDescriptionstatic Document
Converts a jsoup DOM to a W3C DOM.void
Converts a jsoup document into the provided W3C Document.Convert a jsoup Document to a W3C Document. -
Uses of Document in org.jsoup.nodes
Modifier and TypeMethodDescriptionDocument.clone()
Document.connection
(Connection connection) Set the Connection used to fetch this document.static Document
Document.createShell
(String baseUri) Create a valid, empty shell of a document, suitable for adding more elements to.Document.outputSettings
(Document.OutputSettings outputSettings) Set the document's output settings.@Nullable Document
Node.ownerDocument()
Gets the Document associated with this Node.Set the parser used to create this document.Document.quirksMode
(Document.QuirksMode quirksMode) Document.shallowClone()
-
Uses of Document in org.jsoup.parser
Modifier and TypeMethodDescriptionStreamParser.complete()
Runs the parser until the input is fully read, and returns the completed Document.StreamParser.document()
Get the currentDocument
as it is being parsed.static Document
Parser.parse
(String html, String baseUri) Parse HTML into a Document.static Document
Parser.parseBodyFragment
(String bodyHtml, String baseUri) Parse a fragment of HTML into thebody
of a Document.Parser.parseInput
(Reader inputHtml, String baseUri) Parser.parseInput
(String html, String baseUri) -
Uses of Document in org.jsoup.safety
Modifier and TypeMethodDescriptionCreates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.Modifier and TypeMethodDescriptionCreates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.boolean
Determines if the input document's body is valid, against the safelist.