|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.dataformat.tagsoup.TidyMarkupDataFormat
public class TidyMarkupDataFormat
Dataformat for TidyMarkup (aka Well formed HTML in XML form.. may or may not be XHTML) This dataformat is intended to convert bad HTML from a site (or file) into a well formed HTML document which can then be sent to XSLT or xpath'ed on.
Constructor Summary | |
---|---|
TidyMarkupDataFormat()
|
Method Summary | |
---|---|
Node |
asNodeTidyMarkup(InputStream inputStream)
Return the HTML Markup as an Node |
String |
asStringTidyMarkup(InputStream inputStream)
Return the tidy markup as a string |
protected ContentHandler |
createContentHandler(Writer w)
|
protected XMLReader |
createTagSoupParser()
Create the tagSoup Parser |
Class<?> |
getDataObjectType()
|
String |
getMethod()
|
Map<String,Boolean> |
getParserFeatures()
|
Map<String,Object> |
getParserPropeties()
|
org.ccil.cowan.tagsoup.Schema |
getParsingSchema()
|
void |
marshal(org.apache.camel.Exchange exchange,
Object object,
OutputStream outputStream)
Unsupported operation. |
void |
setDataObjectType(Class<?> dataObjectType)
|
void |
setMethod(String method)
|
void |
setParserFeatures(Map<String,Boolean> parserFeatures)
|
void |
setParserPropeties(Map<String,Object> parserPropeties)
|
void |
setParsingSchema(org.ccil.cowan.tagsoup.Schema schema)
|
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream inputStream)
Unmarshal the data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TidyMarkupDataFormat()
Method Detail |
---|
public void marshal(org.apache.camel.Exchange exchange, Object object, OutputStream outputStream) throws Exception
marshal
in interface org.apache.camel.spi.DataFormat
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream inputStream) throws Exception
unmarshal
in interface org.apache.camel.spi.DataFormat
Exception
public String asStringTidyMarkup(InputStream inputStream) throws org.apache.camel.CamelException
inputStream
-
org.apache.camel.CamelException
public Node asNodeTidyMarkup(InputStream inputStream) throws org.apache.camel.CamelException
Node
inputStream
- The input Stream to convert
org.apache.camel.CamelException
protected XMLReader createTagSoupParser() throws org.apache.camel.CamelException
org.apache.camel.CamelException
public void setParsingSchema(org.ccil.cowan.tagsoup.Schema schema)
htmlSchema
- the htmlSchema to setpublic org.ccil.cowan.tagsoup.Schema getParsingSchema()
protected ContentHandler createContentHandler(Writer w)
public void setParserFeatures(Map<String,Boolean> parserFeatures)
parserFeatures
- the parserFeatures to setpublic Map<String,Boolean> getParserFeatures()
public void setParserPropeties(Map<String,Object> parserPropeties)
parserPropeties
- the parserPropeties to setpublic Map<String,Object> getParserPropeties()
public void setMethod(String method)
method
- the method to setpublic String getMethod()
public Class<?> getDataObjectType()
public void setDataObjectType(Class<?> dataObjectType)
dataObjectType
- the dataObjectType to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |