Abstract class containing common methods for determining the character
encoding of a text Resource, most of which should be refactored into a
Util package.
Tests if the String argument looks like it could be a legitimate
authority fragment of a URL, that is, is it an IP address, or, are the
characters legal in an authority, and does the string end with a legal
TLD.
Alter the HTML document in page, updating URLs in the attrName attributes
of all tagName tags such that:
1) absolute URLs are prefixed with: wmPrefix + pageTS 2) server-relative
URLs are prefixed with: wmPrefix + pageTS + (host of page) 3)
path-relative URLs are prefixed with: wmPrefix + pageTS + (attribute URL
resolved against pageUrl)
Carves up a mime-type and returns a ParseResults object
For example, the media range 'application/xhtml;q=0.5' would get parsed
into:
('application', 'xhtml', {'q', '0.5'})
Class which wraps functionality for converting a Resource(InputStream +
HTTP headers) into a StringBuilder, performing several common URL
resolution methods against that StringBuilder, inserting arbitrary Strings
into the page, and then converting the page back to a byte array.