Uses of Class
org.jsoup.nodes.Document
| Package | Description |
|---|---|
| org.jsoup |
Contains the main
Jsoup class, which provides convenient static access to the jsoup functionality. |
| org.jsoup.helper |
Package containing classes supporting the core jsoup code.
|
| org.jsoup.nodes |
HTML document structure nodes.
|
| org.jsoup.parser |
Contains the HTML parser, tag specifications, and HTML tokeniser.
|
| org.jsoup.safety |
Contains the jsoup HTML cleaner, and safelist definitions.
|
-
Uses of Document in org.jsoup
Methods in org.jsoup that return Document Modifier and Type Method Description DocumentConnection. get()Execute the request as a GET, and parse the result.DocumentConnection.Response. parse()Read and parse the body of the response as a Document.static DocumentJsoup. parse(File file, String charsetName)Parse the contents of a file as HTML.static DocumentJsoup. parse(File file, String charsetName, String baseUri)Parse the contents of a file as HTML.static DocumentJsoup. parse(File file, String charsetName, String baseUri, Parser parser)Parse 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 DocumentJsoup. parse(String html)Parse HTML into a Document.static DocumentJsoup. parse(String html, String baseUri)Parse HTML into a Document.static DocumentJsoup. parse(String html, String baseUri, Parser parser)Parse HTML into a Document, using the provided Parser.static DocumentJsoup. parse(URL url, int timeoutMillis)Fetch 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.DocumentConnection. 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 Document Modifier and Type Method Description DocumentHttpConnection. get()static DocumentDataUtil. load(File file, String charsetName, String baseUri)Loads and parses a file to a Document, with the HtmlParser.static DocumentDataUtil. load(File file, String charsetName, String baseUri, Parser parser)Loads 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.DocumentHttpConnection.Response. parse()DocumentHttpConnection. post()Methods in org.jsoup.helper with parameters of type Document Modifier and Type Method Description static DocumentW3CDom. convert(Document in)Converts a jsoup DOM to a W3C DOMvoidW3CDom. convert(Document in, Document out)Converts a jsoup document into the provided W3C Document.DocumentW3CDom. fromJsoup(Document in)Convert a jsoup Document to a W3C Document. -
Uses of Document in org.jsoup.nodes
Methods in org.jsoup.nodes that return Document Modifier and Type Method Description DocumentDocument. clone()DocumentDocument. 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.DocumentDocument. normalise()Normalise the document.DocumentDocument. outputSettings(Document.OutputSettings outputSettings)Set the document's output settings.DocumentNode. ownerDocument()Gets the Document associated with this Node.DocumentDocument. parser(Parser parser)Set the parser used to create this document.DocumentDocument. quirksMode(Document.QuirksMode quirksMode) -
Uses of Document in org.jsoup.parser
Fields in org.jsoup.parser declared as Document Modifier and Type Field Description protected DocumentTreeBuilder. docprotected DocumentTreeBuilder. docMethods in org.jsoup.parser that return Document Modifier and Type Method Description 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.DocumentParser. parseInput(Reader inputHtml, String baseUri)DocumentParser. parseInput(String html, String baseUri) -
Uses of Document in org.jsoup.safety
Methods in org.jsoup.safety that return Document Modifier and Type Method Description DocumentCleaner. clean(Document dirtyDocument)Creates 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 Document Modifier and Type Method Description DocumentCleaner. clean(Document dirtyDocument)Creates a new, clean document, from the original dirty document, containing only elements allowed by the safelist.booleanCleaner. isValid(Document dirtyDocument)Determines if the input document bodyis valid, against the safelist.