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.IXmlPullParser
IOException
public void parse(InputStream inputStream) throws IOException
parse
in interface org.apache.wicket.markup.parser.IXmlPullParser
IOException
public void parse(InputStream inputStream, String encoding) throws IOException
parse
in interface org.apache.wicket.markup.parser.IXmlPullParser
IOException
public String getEncoding()
getEncoding
in interface org.apache.wicket.markup.parser.IXmlPullParser
public CharSequence getDoctype()
getDoctype
in interface org.apache.wicket.markup.parser.IXmlPullParser
public CharSequence getInputFromPositionMarker(int toPos)
getInputFromPositionMarker
in interface org.apache.wicket.markup.parser.IXmlPullParser
public CharSequence getInput(int fromPos, int toPos)
getInput
in interface org.apache.wicket.markup.parser.IXmlPullParser
public org.apache.wicket.markup.parser.IXmlPullParser.HttpTagType next() throws ParseException
next
in interface org.apache.wicket.markup.parser.IXmlPullParser
ParseException
public org.apache.wicket.markup.parser.XmlTag getElement()
getElement
in interface org.apache.wicket.markup.parser.IXmlPullParser
public CharSequence getString()
getString
in interface org.apache.wicket.markup.parser.IXmlPullParser
public void setPositionMarker()
setPositionMarker
in interface org.apache.wicket.markup.parser.IXmlPullParser
public void setPositionMarker(int pos)
setPositionMarker
in interface org.apache.wicket.markup.parser.IXmlPullParser
public org.apache.wicket.markup.parser.IXmlPullParser getDelegate()
public com.googlecode.htmlcompressor.compressor.HtmlCompressor getCompressor()
Copyright © 2015. All rights reserved.