java.lang.Object
org.htmlparser.parserHelper.ParserHelper
- All Implemented Interfaces:
- java.io.Serializable
- public class ParserHelper
- extends java.lang.Object
- implements java.io.Serializable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserHelper
public ParserHelper()
openConnection
public static java.net.URLConnection openConnection(java.net.URL url,
org.htmlparser.util.ParserFeedback feedback)
throws org.htmlparser.util.ParserException
- Opens a connection using the given url.
openConnection
public static java.net.URLConnection openConnection(java.lang.String string,
org.htmlparser.util.ParserFeedback feedback)
throws org.htmlparser.util.ParserException
- Opens a connection based on a given string. The string is either a file,
in which case
file://localhost is prepended to a canonical
path derived from the string, or a url that begins with one of the known
protocol strings, i.e. http://. Embedded spaces are
silently converted to %20 sequences.
findCharset
public static java.lang.String findCharset(java.lang.String name,
java.lang.String _default)
- Lookup a character set name.
Vacuous for JVM's without
java.nio.charset.
This uses reflection so the code will still run under prior JDK's but in
that case the default is always returned.