Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.parserHelper
Class ParserHelper  view ParserHelper download ParserHelper.java

java.lang.Object
  extended byorg.htmlparser.parserHelper.ParserHelper
All Implemented Interfaces:
java.io.Serializable

public class ParserHelper
extends java.lang.Object
implements java.io.Serializable


Constructor Summary
ParserHelper()
           
 
Method Summary
static java.lang.String findCharset(java.lang.String name, java.lang.String _default)
          Lookup a character set name.
static java.net.URLConnection openConnection(java.lang.String string, org.htmlparser.util.ParserFeedback feedback)
          Opens a connection based on a given string.
static java.net.URLConnection openConnection(java.net.URL url, org.htmlparser.util.ParserFeedback feedback)
          Opens a connection using the given url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserHelper

public ParserHelper()
Method Detail

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.