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, String charsetName, String baseUri) Read an input stream, and parse it to a Document.static DocumentJsoup.parse(InputStream in, String charsetName, String baseUri, Parser parser) Read an input stream, and parse it to a Document.static DocumentParse HTML into a Document.static DocumentParse 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 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, String charsetName, String baseUri) Parses a Document from an input steam.static DocumentDataUtil.load(InputStream in, String charsetName, String baseUri, Parser parser) Parses a Document from an input steam, using the provided Parser.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 a document, suitable for adding more elements to.Document.normalise()Normalise the document.Document.outputSettings(Document.OutputSettings outputSettings) Set the document's output settings.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
Fields in org.jsoup.parser declared as DocumentModifier and TypeFieldDescriptionprotected DocumentTreeBuilder.docprotected DocumentTreeBuilder.docMethods in org.jsoup.parser that return DocumentModifier and TypeMethodDescriptionstatic DocumentParse 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) Parser.parseInput(String html, String baseUri) -
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 bodyis valid, against the safelist.