Uses of Class
org.htmlparser.util.ParserException
-
Packages that use ParserException Package Description org.htmlparser The basic API classes which will be used by most developers when working with the HTML Parser.org.htmlparser.beans The beans package contains Java Beans using the HTML Parser.org.htmlparser.http The http package is responsible for HTTP connections to servers.org.htmlparser.lexer The lexer package is the base level I/O subsystem.org.htmlparser.lexerapplications.thumbelina Extract the images behind thumbnail images.org.htmlparser.nodes The nodes package has the concrete node implementations.org.htmlparser.parserapplications Example applications.org.htmlparser.sax The sax package implements a SAX (Simple API for XML) parser for HTML.org.htmlparser.scanners The scanners package contains classes responsible for the tertiary identification of tags.org.htmlparser.tags The tags package contains specific tags.org.htmlparser.util Code which can be reused by many classes, is located in this package. -
-
Uses of ParserException in org.htmlparser
Methods in org.htmlparser that throw ParserException Modifier and Type Method Description RemarkNodeFactory. createRemarkNode(Page page, int start, int end)Create a new remark node.TextNodeFactory. createStringNode(Page page, int start, int end)Create a new text node.TagNodeFactory. createTagNode(Page page, int start, int end, java.util.Vector attributes)Create a new tag node.voidNode. doSemanticAction()Perform the meaning of this tag.NodeIteratorParser. elements()Returns an iterator (enumeration) over the html nodes.NodeListParser. extractAllNodesThatMatch(NodeFilter filter)Extract all nodes matching the given filter.NodeListParser. parse(NodeFilter filter)Parse the given resource, using the filter provided.voidParser. postConnect(java.net.HttpURLConnection connection)Called just after calling connect.voidParser. preConnect(java.net.HttpURLConnection connection)Called just prior to calling connect.voidParser. setConnection(java.net.URLConnection connection)Set the connection for this parser.voidParser. setEncoding(java.lang.String encoding)Set the encoding for the page this parser is reading from.voidParser. setInputHTML(java.lang.String inputHTML)Initializes the parser with the given input HTML String.voidParser. setResource(java.lang.String resource)Set the html, a url, or a file.voidParser. setURL(java.lang.String url)Set the URL for this parser.voidParser. visitAllNodesWith(NodeVisitor visitor)Apply the given visitor to the current page.Constructors in org.htmlparser that throw ParserException Constructor Description Parser(java.lang.String resource)Creates a Parser object with the location of the resource (URL or file).Parser(java.lang.String resource, ParserFeedback feedback)Creates a Parser object with the location of the resource (URL or file) You would typically create a DefaultHTMLParserFeedback object and pass it in.Parser(java.net.URLConnection connection)Construct a parser using the provided URLConnection.Parser(java.net.URLConnection connection, ParserFeedback fb)Constructor for custom HTTP access. -
Uses of ParserException in org.htmlparser.beans
Methods in org.htmlparser.beans that throw ParserException Modifier and Type Method Description protected NodeListFilterBean. applyFilters()Apply each of the filters.protected java.net.URL[]LinkBean. extractLinks()Internal routine to extract all the links from the parser.protected java.lang.StringStringBean. extractStrings()Extract the text from a page. -
Uses of ParserException in org.htmlparser.http
Methods in org.htmlparser.http that throw ParserException Modifier and Type Method Description java.net.URLConnectionConnectionManager. openConnection(java.lang.String string)Opens a connection based on a given string.java.net.URLConnectionConnectionManager. openConnection(java.net.URL url)Opens a connection using the given url.voidConnectionMonitor. postConnect(java.net.HttpURLConnection connection)Called just after calling connect.voidConnectionMonitor. preConnect(java.net.HttpURLConnection connection)Called just prior to calling connect. -
Uses of ParserException in org.htmlparser.lexer
Methods in org.htmlparser.lexer that throw ParserException Modifier and Type Method Description charPage. getCharacter(Cursor cursor)Read the character at the given cursor position.static voidLexer. main(java.lang.String[] args)Mainline for command line operationprotected NodeLexer. makeRemark(int start, int end)Create a remark node based on the current cursor and the one provided.protected NodeLexer. makeString(int start, int end)Create a string node based on the current cursor and the one provided.protected NodeLexer. makeTag(int start, int end, java.util.Vector attributes)Create a tag node based on the current cursor and the one provided.NodeLexer. nextNode()Get the next node from the source.NodeLexer. nextNode(boolean quotesmart)Get the next node from the source.NodeLexer. parseCDATA()Return CDATA as a text node.NodeLexer. parseCDATA(boolean quotesmart)Return CDATA as a text node.protected NodeLexer. parseJsp(int start)Parse a java server page node.protected NodeLexer. parsePI(int start)Parse an XML processing instruction.protected NodeLexer. parseRemark(int start, boolean quotesmart)Parse a comment.protected NodeLexer. parseString(int start, boolean quotesmart)Parse a string node.protected NodeLexer. parseTag(int start)Parse a tag.protected voidLexer. scanJIS(Cursor cursor)Advance the cursor through a JIS escape sequence.voidPage. setConnection(java.net.URLConnection connection)Set the URLConnection to be used by this page.voidInputStreamSource. setEncoding(java.lang.String character_set)Begins reading from the source with the given character set.voidPage. setEncoding(java.lang.String character_set)Begins reading from the source with the given character set.abstract voidSource. setEncoding(java.lang.String character_set)Set the encoding to the given character set.voidStringSource. setEncoding(java.lang.String character_set)Set the encoding to the given character set.voidPage. ungetCharacter(Cursor cursor)Return a character.Constructors in org.htmlparser.lexer that throw ParserException Constructor Description Lexer(java.net.URLConnection connection)Creates a new instance of a Lexer.Page(java.net.URLConnection connection)Construct a page reading from a URL connection. -
Uses of ParserException in org.htmlparser.lexerapplications.thumbelina
Methods in org.htmlparser.lexerapplications.thumbelina that throw ParserException Modifier and Type Method Description protected java.net.URL[][]Thumbelina. extractImageLinks(Lexer lexer, java.net.URL docbase)Get the links of an element of a document. -
Uses of ParserException in org.htmlparser.nodes
Methods in org.htmlparser.nodes that throw ParserException Modifier and Type Method Description voidAbstractNode. doSemanticAction()Perform the meaning of this tag. -
Uses of ParserException in org.htmlparser.parserapplications
Methods in org.htmlparser.parserapplications that throw ParserException Modifier and Type Method Description java.lang.StringStringExtractor. extractStrings(boolean links)Extract the text from a page.protected booleanSiteCapturer. isHtml(java.lang.String link)Returnstrueif the link contains text/html content.protected voidSiteCapturer. process(NodeFilter filter)Process a single page. -
Uses of ParserException in org.htmlparser.sax
Methods in org.htmlparser.sax with parameters of type ParserException Modifier and Type Method Description voidFeedback. error(java.lang.String message, ParserException e)Error message.Methods in org.htmlparser.sax that throw ParserException Modifier and Type Method Description protected voidXMLReader. doSAX(Node node)Process nodes recursively on the DocumentHandler. -
Uses of ParserException in org.htmlparser.scanners
Methods in org.htmlparser.scanners that throw ParserException Modifier and Type Method Description protected TagCompositeTagScanner. createVirtualEndTag(Tag tag, Lexer lexer, Page page, int position)Creates an end tag with the same name as the given tag.static java.lang.StringScriptDecoder. Decode(Page page, Cursor cursor)Decode script encoded by the Microsoft obfuscator.protected voidCompositeTagScanner. finishTag(Tag tag, Lexer lexer)Finish off a tag.TagCompositeTagScanner. scan(Tag tag, Lexer lexer, NodeList stack)Collect the children.TagScanner. scan(Tag tag, Lexer lexer, NodeList stack)Scan the tag.TagScriptScanner. scan(Tag tag, Lexer lexer, NodeList stack)Scan for script.TagStyleScanner. scan(Tag tag, Lexer lexer, NodeList stack)Scan for style definitions.TagTagScanner. scan(Tag tag, Lexer lexer, NodeList stack)Scan the tag. -
Uses of ParserException in org.htmlparser.tags
Methods in org.htmlparser.tags that throw ParserException Modifier and Type Method Description voidBaseHrefTag. doSemanticAction()Perform the meaning of this tag.voidMetaTag. doSemanticAction()Perform the META tag semantic action. -
Uses of ParserException in org.htmlparser.util
Subclasses of ParserException in org.htmlparser.util Modifier and Type Class Description classEncodingChangeExceptionThe encoding is changed invalidating already scanned characters.Methods in org.htmlparser.util with parameters of type ParserException Modifier and Type Method Description voidDefaultParserFeedback. error(java.lang.String message, ParserException exception)Print an error message.static voidFeedbackManager. error(java.lang.String message, ParserException e)voidParserFeedback. error(java.lang.String message, ParserException e)Methods in org.htmlparser.util that throw ParserException Modifier and Type Method Description static ParserParserUtils. createParserParsingAnInputString(java.lang.String input)Create a Parser Object having a String Object as input (instead of a url or a string representing the url location).booleanIteratorImpl. hasMoreNodes()Check if more nodes are available.booleanNodeIterator. hasMoreNodes()Check if more nodes are available.NodeIteratorImpl. nextNode()Get the next node.NodeNodeIterator. nextNode()Get the next node.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, java.lang.Class nodeType)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, java.lang.Class nodeType, boolean recursive, boolean insideTag)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, java.lang.String[] tags)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, java.lang.String[] tags, boolean recursive, boolean insideTag)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, NodeFilter filter)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.String[]ParserUtils. splitTags(java.lang.String input, NodeFilter filter, boolean recursive, boolean insideTag)Split the input string in a string array, considering the tags as delimiter for splitting.static java.lang.StringParserUtils. trimTags(java.lang.String input, java.lang.Class nodeType)Trim all tags in the input string and return a string like the input one without the tags and their content.static java.lang.StringParserUtils. trimTags(java.lang.String input, java.lang.Class nodeType, boolean recursive, boolean insideTag)Trim all tags in the input string and return a string like the input one without the tags and their content (optional).static java.lang.StringParserUtils. trimTags(java.lang.String input, java.lang.String[] tags)Trim all tags in the input string and return a string like the input one without the tags and their content.static java.lang.StringParserUtils. trimTags(java.lang.String input, java.lang.String[] tags, boolean recursive, boolean insideTag)Trim all tags in the input string and return a string like the input one without the tags and their content (optional).static java.lang.StringParserUtils. trimTags(java.lang.String input, NodeFilter filter)Trim all tags in the input string and return a string like the input one without the tags and their content.static java.lang.StringParserUtils. trimTags(java.lang.String input, NodeFilter filter, boolean recursive, boolean insideTag)Trim all tags in the input string and return a string like the input one without the tags and their content (optional).voidNodeList. visitAllNodesWith(NodeVisitor visitor)Utility to apply a visitor to a node list.
-