Uses of Class
org.jsoup.nodes.Document
Packages that use 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 DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentJsoup.parse(InputStream in, @Nullable String charsetName, String baseUri) Read an input stream, and parse it to a Document.static DocumentJsoup.parse(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Read an input stream, and parse it to a Document.static DocumentJsoup.parse(String html) Parse HTML into a Document.static DocumentJsoup.parse(String html, String baseUri) Parse HTML into a Document.static DocumentParse HTML into a Document, using the provided Parser.static DocumentParse HTML into a Document, using the provided Parser.static DocumentFetch a URL, and parse it as HTML.static DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentParse the contents of a file as HTML.static DocumentJsoup.parseBodyFragment(String bodyHtml) Parse a fragment of HTML, with the assumption that it forms thebodyof the HTML.static DocumentJsoup.parseBodyFragment(String bodyHtml, String baseUri) Parse a fragment of HTML, with the assumption that it forms thebodyof the HTML.Connection.post()Execute the request as a POST, and parse the result. -
Uses of Document in org.jsoup.helper
Methods in org.jsoup.helper that return DocumentModifier and TypeMethodDescriptionHttpConnection.get()static DocumentLoads and parses a file to a Document, with the HtmlParser.static DocumentLoads and parses a file to a Document.static DocumentDataUtil.load(InputStream in, @Nullable String charsetName, String baseUri) Parses a Document from an input steam.static DocumentDataUtil.load(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Parses a Document from an input steam, using the provided Parser.static DocumentLoads and parses a file to a Document, with the HtmlParser.static DocumentLoads and parses a file to a Document.HttpConnection.Response.parse()HttpConnection.post()Methods in org.jsoup.helper with parameters of type DocumentModifier and TypeMethodDescriptionstatic DocumentConverts a jsoup DOM to a W3C DOM.voidConverts a jsoup document into the provided W3C Document.Convert a jsoup Document to a W3C Document. -
Uses of Document in org.jsoup.nodes
Methods in org.jsoup.nodes that return DocumentModifier and TypeMethodDescriptionDocument.clone()Document.connection(Connection connection) Set the Connection used to fetch this document.static DocumentDocument.createShell(String baseUri) Create a valid, empty shell of an HTML document, suitable for adding more elements to.Document.outputSettings(Document.OutputSettings outputSettings) Set the document's output settings.@Nullable DocumentNode.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
Methods in org.jsoup.parser that return DocumentModifier and TypeMethodDescriptionStreamParser.complete()Runs the parser until the input is fully read, and returns the completed Document.StreamParser.document()Get the currentDocumentas it is being parsed.static DocumentParser.parse(String html, String baseUri) Parse HTML into a Document.static DocumentParser.parseBodyFragment(String bodyHtml, String baseUri) Parse a fragment of HTML into thebodyof a Document.Parser.parseInput(Reader inputHtml, String baseUri) Parse the contents of Reader.Parser.parseInput(String html, String baseUri) Parse the contents of a String. -
Uses of Document in org.jsoup.safety
Methods in org.jsoup.safety that return DocumentModifier and TypeMethodDescriptionCreates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.Methods in org.jsoup.safety with parameters of type DocumentModifier and TypeMethodDescriptionCreates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.booleanDetermines if the input document's body is valid, against the safelist.