public class HTMLFileParser extends org.htmlparser.beans.StringBean implements IFileParser
mBuffer, mCollapse, mCollapseState, mIsPre, mIsScript, mIsStyle, mLinks, mParser, mPropertySupport, mReplaceSpace, mStrings, PROP_COLLAPSE_PROPERTY, PROP_CONNECTION_PROPERTY, PROP_LINKS_PROPERTY, PROP_REPLACE_SPACE_PROPERTY, PROP_STRINGS_PROPERTY, PROP_URL_PROPERTY
构造器和说明 |
---|
HTMLFileParser()
锟秸癸拷锟斤拷锟斤拷
|
HTMLFileParser(File file)
锟斤拷锟斤拷锟斤拷,锟斤拷锟斤拷锟斤拷锟绞憋拷璐拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟斤拷,锟斤拷锟斤拷锟斤拷锟斤拷呔筒锟斤拷锟斤拷锟斤拷止锟斤拷锟斤拷锟絪etFile()锟斤拷锟斤拷锟斤拷.
|
限定符和类型 | 方法和说明 |
---|---|
Reader |
getContentReader()
锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷(Reader锟斤拷锟斤拷锟�)
|
String |
getContentString()
锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷(String锟街凤拷锟斤拷锟�)
|
String |
getMetadata(String metadataname)
锟斤拷莶锟斤拷锟�,锟斤拷锟斤拷锟斤拷应锟斤拷meta锟斤拷息,锟矫凤拷锟斤拷锟斤拷未实锟斤拷
|
String |
getTitle()
锟斤拷锟斤拷锟侥硷拷锟侥憋拷锟斤拷,锟斤拷锟斤拷锟斤拷欠锟斤拷锟斤拷募锟斤拷锟�
|
void |
setFile(File file)
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷募锟斤拷锟�
|
void |
setStr(String htmlStr) |
void |
setString(String htmlContent) |
void |
setTheStr() |
void |
visitTitleTag(org.htmlparser.tags.TitleTag titleTag)
锟斤拷锟节得碉拷锟斤拷页锟斤拷
|
addPropertyChangeListener, carriageReturn, collapse, extractStrings, getCollapse, getConnection, getLinks, getReplaceNonBreakingSpaces, getStrings, getURL, main, removePropertyChangeListener, setCollapse, setConnection, setLinks, setReplaceNonBreakingSpaces, setStrings, setURL, updateStrings, visitEndTag, visitStringNode, visitTag
public HTMLFileParser()
public HTMLFileParser(File file)
file
- public void setString(String htmlContent)
public void setFile(File file)
setFile
在接口中 IFileParser
public void setStr(String htmlStr)
public void setTheStr()
public String getTitle()
getTitle
在接口中 IFileParser
public String getContentString()
getContentString
在接口中 IFileParser
public Reader getContentReader()
getContentReader
在接口中 IFileParser
public String getMetadata(String metadataname)
getMetadata
在接口中 IFileParser
public void visitTitleTag(org.htmlparser.tags.TitleTag titleTag)
Copyright © 2016–2017. All rights reserved.