Uses of Class
org.htmlparser.util.ParserException
Packages that use ParserException
Package
Description
The basic API classes which will be used by most developers when working with
the HTML Parser.
The beans package contains Java Beans using the HTML Parser.
The http package is responsible for HTTP connections to servers.
The lexer package is the base level I/O subsystem.
Extract the images behind thumbnail images.
The nodes package has the concrete node implementations.
Example applications.
The sax package implements a SAX (Simple API for XML) parser for HTML.
The scanners package contains classes responsible for the tertiary
identification of tags.
The tags package contains specific tags.
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 ParserExceptionModifier and TypeMethodDescriptionNodeFactory.createRemarkNode
(Page page, int start, int end) Create a new remark node.NodeFactory.createStringNode
(Page page, int start, int end) Create a new text node.NodeFactory.createTagNode
(Page page, int start, int end, Vector attributes) Create a new tag node.void
Node.doSemanticAction()
Perform the meaning of this tag.Parser.elements()
Returns an iterator (enumeration) over the html nodes.Parser.extractAllNodesThatMatch
(NodeFilter filter) Extract all nodes matching the given filter.Parser.parse
(NodeFilter filter) Parse the given resource, using the filter provided.void
Parser.postConnect
(HttpURLConnection connection) Called just after calling connect.void
Parser.preConnect
(HttpURLConnection connection) Called just prior to calling connect.void
Parser.setConnection
(URLConnection connection) Set the connection for this parser.void
Parser.setEncoding
(String encoding) Set the encoding for the page this parser is reading from.void
Parser.setInputHTML
(String inputHTML) Initializes the parser with the given input HTML String.void
Parser.setResource
(String resource) Set the html, a url, or a file.void
Set the URL for this parser.void
Parser.visitAllNodesWith
(NodeVisitor visitor) Apply the given visitor to the current page.Constructors in org.htmlparser that throw ParserExceptionModifierConstructorDescriptionCreates a Parser object with the location of the resource (URL or file).Parser
(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
(URLConnection connection) Construct a parser using the provided URLConnection.Parser
(URLConnection connection, ParserFeedback fb) Constructor for custom HTTP access. -
Uses of ParserException in org.htmlparser.beans
Methods in org.htmlparser.beans that throw ParserExceptionModifier and TypeMethodDescriptionprotected NodeList
FilterBean.applyFilters()
Apply each of the filters.protected URL[]
LinkBean.extractLinks()
Internal routine to extract all the links from the parser.protected String
StringBean.extractStrings()
Extract the text from a page. -
Uses of ParserException in org.htmlparser.http
Methods in org.htmlparser.http that throw ParserExceptionModifier and TypeMethodDescriptionConnectionManager.openConnection
(String string) Opens a connection based on a given string.ConnectionManager.openConnection
(URL url) Opens a connection using the given url.void
ConnectionMonitor.postConnect
(HttpURLConnection connection) Called just after calling connect.void
ConnectionMonitor.preConnect
(HttpURLConnection connection) Called just prior to calling connect. -
Uses of ParserException in org.htmlparser.lexer
Methods in org.htmlparser.lexer that throw ParserExceptionModifier and TypeMethodDescriptionchar
Page.getCharacter
(Cursor cursor) Read the character at the given cursor position.static void
Mainline for command line operationprotected Node
Lexer.makeRemark
(int start, int end) Create a remark node based on the current cursor and the one provided.protected Node
Lexer.makeString
(int start, int end) Create a string node based on the current cursor and the one provided.protected Node
Create a tag node based on the current cursor and the one provided.Lexer.nextNode()
Get the next node from the source.Lexer.nextNode
(boolean quotesmart) Get the next node from the source.Lexer.parseCDATA()
Return CDATA as a text node.Lexer.parseCDATA
(boolean quotesmart) Return CDATA as a text node.protected Node
Lexer.parseJsp
(int start) Parse a java server page node.protected Node
Lexer.parsePI
(int start) Parse an XML processing instruction.protected Node
Lexer.parseRemark
(int start, boolean quotesmart) Parse a comment.protected Node
Lexer.parseString
(int start, boolean quotesmart) Parse a string node.protected Node
Lexer.parseTag
(int start) Parse a tag.protected void
Advance the cursor through a JIS escape sequence.void
Page.setConnection
(URLConnection connection) Set the URLConnection to be used by this page.void
InputStreamSource.setEncoding
(String character_set) Begins reading from the source with the given character set.void
Page.setEncoding
(String character_set) Begins reading from the source with the given character set.abstract void
Source.setEncoding
(String character_set) Set the encoding to the given character set.void
StringSource.setEncoding
(String character_set) Set the encoding to the given character set.void
Page.ungetCharacter
(Cursor cursor) Return a character.Constructors in org.htmlparser.lexer that throw ParserExceptionModifierConstructorDescriptionLexer
(URLConnection connection) Creates a new instance of a Lexer.Page
(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 ParserExceptionModifier and TypeMethodDescriptionprotected URL[][]
Thumbelina.extractImageLinks
(Lexer lexer, 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 ParserExceptionModifier and TypeMethodDescriptionvoid
AbstractNode.doSemanticAction()
Perform the meaning of this tag. -
Uses of ParserException in org.htmlparser.parserapplications
Methods in org.htmlparser.parserapplications that throw ParserExceptionModifier and TypeMethodDescriptionStringExtractor.extractStrings
(boolean links) Extract the text from a page.protected boolean
Returnstrue
if the link contains text/html content.protected void
SiteCapturer.process
(NodeFilter filter) Process a single page. -
Uses of ParserException in org.htmlparser.sax
Methods in org.htmlparser.sax with parameters of type ParserExceptionModifier and TypeMethodDescriptionvoid
Feedback.error
(String message, ParserException e) Error message.Methods in org.htmlparser.sax that throw ParserException -
Uses of ParserException in org.htmlparser.scanners
Methods in org.htmlparser.scanners that throw ParserExceptionModifier and TypeMethodDescriptionprotected Tag
CompositeTagScanner.createVirtualEndTag
(Tag tag, Lexer lexer, Page page, int position) Creates an end tag with the same name as the given tag.static String
Decode script encoded by the Microsoft obfuscator.protected void
Finish off a tag.Collect the children.Scan the tag.Scan for script.Scan for style definitions.Scan the tag. -
Uses of ParserException in org.htmlparser.tags
Methods in org.htmlparser.tags that throw ParserExceptionModifier and TypeMethodDescriptionvoid
BaseHrefTag.doSemanticAction()
Perform the meaning of this tag.void
MetaTag.doSemanticAction()
Perform the META tag semantic action. -
Uses of ParserException in org.htmlparser.util
Subclasses of ParserException in org.htmlparser.utilModifier and TypeClassDescriptionclass
The encoding is changed invalidating already scanned characters.Methods in org.htmlparser.util with parameters of type ParserExceptionModifier and TypeMethodDescriptionvoid
DefaultParserFeedback.error
(String message, ParserException exception) Print an error message.static void
FeedbackManager.error
(String message, ParserException e) void
ParserFeedback.error
(String message, ParserException e) Methods in org.htmlparser.util that throw ParserExceptionModifier and TypeMethodDescriptionstatic Parser
ParserUtils.createParserParsingAnInputString
(String input) Create a Parser Object having a String Object as input (instead of a url or a string representing the url location).boolean
IteratorImpl.hasMoreNodes()
Check if more nodes are available.boolean
NodeIterator.hasMoreNodes()
Check if more nodes are available.IteratorImpl.nextNode()
Get the next node.NodeIterator.nextNode()
Get the next node.static String[]
Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
ParserUtils.splitTags
(String input, NodeFilter filter) Split the input string in a string array, considering the tags as delimiter for splitting.static String[]
ParserUtils.splitTags
(String input, NodeFilter filter, boolean recursive, boolean insideTag) Split the input string in a string array, considering the tags as delimiter for splitting.static String
Trim all tags in the input string and return a string like the input one without the tags and their content.static String
Trim all tags in the input string and return a string like the input one without the tags and their content (optional).static String
Trim all tags in the input string and return a string like the input one without the tags and their content.static String
Trim all tags in the input string and return a string like the input one without the tags and their content (optional).static String
ParserUtils.trimTags
(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 String
ParserUtils.trimTags
(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).void
NodeList.visitAllNodesWith
(NodeVisitor visitor) Utility to apply a visitor to a node list.