public class HtmlCompressingXmlPullParser extends Object implements org.apache.wicket.markup.parser.IXmlPullParser
IXmlPullParser implementation with the delegation pattern. Compresses the markup before
passing it to the delegated parser. It is constructed by HtmlCompressingMarkupFactory.| Constructor and Description |
|---|
HtmlCompressingXmlPullParser(org.apache.wicket.markup.parser.IXmlPullParser delegate,
com.googlecode.htmlcompressor.compressor.HtmlCompressor compressor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.googlecode.htmlcompressor.compressor.HtmlCompressor |
getCompressor()
Getter for the html compressor.
|
org.apache.wicket.markup.parser.IXmlPullParser |
getDelegate()
Getter for the "real" xml pull parser.
|
CharSequence |
getDoctype() |
org.apache.wicket.markup.parser.XmlTag |
getElement() |
String |
getEncoding() |
CharSequence |
getInput(int fromPos,
int toPos) |
CharSequence |
getInputFromPositionMarker(int toPos) |
CharSequence |
getString() |
org.apache.wicket.markup.parser.IXmlPullParser.HttpTagType |
next() |
void |
parse(CharSequence string) |
void |
parse(InputStream inputStream) |
void |
parse(InputStream inputStream,
String encoding) |
void |
setPositionMarker() |
void |
setPositionMarker(int pos) |
public HtmlCompressingXmlPullParser(org.apache.wicket.markup.parser.IXmlPullParser delegate,
com.googlecode.htmlcompressor.compressor.HtmlCompressor compressor)
delegate - the wrapped, "real" parser, not nullcompressor - the html compressor, not nullpublic void parse(CharSequence string) throws IOException
parse in interface org.apache.wicket.markup.parser.IXmlPullParserIOExceptionpublic void parse(InputStream inputStream) throws IOException
parse in interface org.apache.wicket.markup.parser.IXmlPullParserIOExceptionpublic void parse(InputStream inputStream, String encoding) throws IOException
parse in interface org.apache.wicket.markup.parser.IXmlPullParserIOExceptionpublic String getEncoding()
getEncoding in interface org.apache.wicket.markup.parser.IXmlPullParserpublic CharSequence getDoctype()
getDoctype in interface org.apache.wicket.markup.parser.IXmlPullParserpublic CharSequence getInputFromPositionMarker(int toPos)
getInputFromPositionMarker in interface org.apache.wicket.markup.parser.IXmlPullParserpublic CharSequence getInput(int fromPos, int toPos)
getInput in interface org.apache.wicket.markup.parser.IXmlPullParserpublic org.apache.wicket.markup.parser.IXmlPullParser.HttpTagType next()
throws ParseException
next in interface org.apache.wicket.markup.parser.IXmlPullParserParseExceptionpublic org.apache.wicket.markup.parser.XmlTag getElement()
getElement in interface org.apache.wicket.markup.parser.IXmlPullParserpublic CharSequence getString()
getString in interface org.apache.wicket.markup.parser.IXmlPullParserpublic void setPositionMarker()
setPositionMarker in interface org.apache.wicket.markup.parser.IXmlPullParserpublic void setPositionMarker(int pos)
setPositionMarker in interface org.apache.wicket.markup.parser.IXmlPullParserpublic org.apache.wicket.markup.parser.IXmlPullParser getDelegate()
public com.googlecode.htmlcompressor.compressor.HtmlCompressor getCompressor()
Copyright © 2015. All rights reserved.