本文整理了Java中org.htmlparser.Parser.setURL()
方法的一些代码示例,展示了Parser.setURL()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.setURL()
方法的具体详情如下:
包路径:org.htmlparser.Parser
类名称:Parser
方法名:setURL
[英]Set the URL for this parser. This method creates a new Lexer reading from the given URL. Trying to set the url to null or an empty string is a no-op.
[中]设置此解析器的URL。这个方法创建一个新的Lexer,读取给定的URL。尝试将url设置为null或空字符串是不允许的。
代码示例来源:origin: org.htmlparser/htmlparser
/**
* Refetch the URL contents.
* Only need to worry if there is already a valid parser and it's
* been spent fetching the string contents.
*/
private void resetStrings ()
{
if (null != mStrings)
try
{
mParser.setURL (getURL ());
setStrings ();
}
catch (ParserException pe)
{
updateStrings (pe.toString ());
}
}
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
/**
* Setter for property URL.
* @param url New value of property URL.
*/
public void setURL (String url)
{
String old;
old = getURL ();
if (((null == old) && (null != url)) || ((null != old)
&& !old.equals (url)))
{
try
{
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
setLinks ();
}
catch (ParserException hpe)
{
// failed... now what
}
}
}
代码示例来源:origin: org.htmlparser/htmlparser
/**
* Setter for property URL.
* @param url New value of property URL.
*/
public void setURL (String url)
{
String old;
old = getURL ();
if (((null == old) && (null != url)) || ((null != old)
&& !old.equals (url)))
{
try
{
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
setLinks ();
}
catch (ParserException hpe)
{
// failed... now what
}
}
}
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
getConnectionManager ().setMonitor (parser);
parser.setURL (args[0]);
System.out.println (parser.parse (filter));
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
/**
* Refetch the URL contents.
* Only need to worry if there is already a valid parser and it's
* been spent fetching the string contents.
*/
private void resetStrings ()
{
if (null != mStrings)
try
{
mParser.setURL (getURL ());
setStrings ();
}
catch (ParserException pe)
{
updateStrings (pe.toString ());
}
}
代码示例来源:origin: org.htmlparser/htmlparser
mParser = new Parser (url);
else
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
mParser = new Parser (url);
else
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
mParser.setURL (url);
try
代码示例来源:origin: Alfresco/alfresco-repository
mParser.setURL(newURL);
代码示例来源:origin: org.htmlparser/htmlparser
mParser = new Parser (url);
else
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
mParser = new Parser (url);
else
mParser.setURL (url);
mPropertySupport.firePropertyChange (
PROP_URL_PROPERTY, old, getURL ());
代码示例来源:origin: org.alfresco/alfresco-repository
mParser.setURL(newURL);
内容来源于网络,如有侵权,请联系作者删除!