org.ajax4jsf.webapp.nekko
Class NekkoParser
java.lang.Object
org.ajax4jsf.webapp.nekko.NekkoParser
- All Implemented Interfaces:
- HtmlParser
public class NekkoParser
- extends java.lang.Object
- implements HtmlParser
- Author:
- shura
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NekkoParser
public NekkoParser()
init
public void init()
reset
public void reset()
- Reset parser state
parseHtml
public void parseHtml(java.io.InputStream input,
java.io.Writer output)
throws java.io.IOException
- Specified by:
parseHtml
in interface HtmlParser
- Throws:
java.io.IOException
parseHtml
public void parseHtml(java.io.Reader input,
java.io.Writer output)
throws java.io.IOException
- Specified by:
parseHtml
in interface HtmlParser
- Throws:
java.io.IOException
setInputEncoding
public void setInputEncoding(java.lang.String encoding)
- Specified by:
setInputEncoding
in interface HtmlParser
setOutputEncoding
public void setOutputEncoding(java.lang.String encoding)
- Specified by:
setOutputEncoding
in interface HtmlParser
setMoveElements
public void setMoveElements(boolean move)
- Description copied from interface:
HtmlParser
- Setup, must tidy move style etc. elements to head or not.
- Specified by:
setMoveElements
in interface HtmlParser
setDoctype
public void setDoctype(java.lang.String doctype)
- Specified by:
setDoctype
in interface HtmlParser
setViewState
public void setViewState(java.lang.String viewState)
- Specified by:
setViewState
in interface HtmlParser
- Parameters:
viewState
- The viewState to set.
getHtmlConfig
protected org.cyberneko.html.HTMLConfiguration getHtmlConfig()
- Factory method for create and configure HTML parser configuration. Create
configuration for use in parsing, set nessesary features and properties
- Returns:
-
- Throws:
javax.servlet.ServletException
setNamespace
public void setNamespace(java.lang.String namespace)
- Parameters:
namespace
- The namespace to set.
setPublicId
public void setPublicId(java.lang.String publicId)
- Parameters:
publicId
- The publicId to set.
setSystemid
public void setSystemid(java.lang.String systemid)
- Parameters:
systemid
- The systemid to set.
setMime
public boolean setMime(java.lang.String mimeType)
- Specified by:
setMime
in interface HtmlParser
setHeadNodes
public void setHeadNodes(org.w3c.dom.Node[] headEvents)
- Specified by:
setHeadNodes
in interface HtmlParser
Copyright © 2010. All Rights Reserved.