|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(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(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(Exchange exchange,
Object object,
OutputStream outputStream)
throws Exception
marshal in interface DataFormatexchange - the current exchangeobject - the object to be marshalledoutputStream - the output stream to write the marshalled result to
Exception - can be thrown
public Object unmarshal(Exchange exchange,
InputStream inputStream)
throws Exception
unmarshal in interface DataFormatexchange - the current exchangeinputStream - the input stream with the object to be unmarshalled
Exception
public String asStringTidyMarkup(InputStream inputStream)
throws CamelException
inputStream -
CamelException
public Node asNodeTidyMarkup(InputStream inputStream)
throws CamelException
Node
inputStream - The input Stream to convert
CamelException
protected XMLReader createTagSoupParser()
throws CamelException
CamelExceptionpublic 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 | |||||||||