public class TidyMarkupDataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
Constructor and Description |
---|
TidyMarkupDataFormat() |
Modifier and Type | Method and Description |
---|---|
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
|
protected void |
doStart() |
protected void |
doStop() |
String |
getDataFormatName() |
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
|
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
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 convertorg.apache.camel.CamelException
protected XMLReader createTagSoupParser() throws org.apache.camel.CamelException
org.apache.camel.CamelException
protected ContentHandler createContentHandler(Writer w)
public void setParsingSchema(org.ccil.cowan.tagsoup.Schema schema)
public org.ccil.cowan.tagsoup.Schema getParsingSchema()
public void setMethod(String method)
public String getMethod()
public Class<?> getDataObjectType()
public void setDataObjectType(Class<?> dataObjectType)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
Apache Camel