public class HTMLCleanerHandle extends BaseHandle<OperationNotSupported,OutputStreamSender> implements OutputStreamSender, XMLWriteHandle
An HTMLCleaner Handle writes an HTML document to the database as an XHTML document.
UNKNOWN_LENGTH| Constructor and Description |
|---|
HTMLCleanerHandle() |
HTMLCleanerHandle(org.htmlcleaner.TagNode content) |
| Modifier and Type | Method and Description |
|---|---|
org.htmlcleaner.TagNode |
get() |
org.htmlcleaner.CleanerProperties |
getConfiguration() |
org.htmlcleaner.HtmlCleaner |
getParser() |
org.htmlcleaner.ITagInfoProvider |
getRulesProvider() |
org.htmlcleaner.XmlSerializer |
getSerializer() |
void |
set(File content,
String charset) |
void |
set(InputStream content,
String charset) |
void |
set(Reader content) |
void |
set(String content) |
void |
set(org.htmlcleaner.TagNode content) |
void |
setConfiguration(org.htmlcleaner.CleanerProperties configuration) |
void |
setFormat(Format format)
Specifies the format of the content as binary, JSON, text, or XML.
|
void |
setParser(org.htmlcleaner.HtmlCleaner parser) |
void |
setRulesProvider(org.htmlcleaner.ITagInfoProvider rulesProvider) |
void |
setSerializer(org.htmlcleaner.XmlSerializer serializer) |
HTMLCleanerHandle |
with(File content,
String charset) |
HTMLCleanerHandle |
with(InputStream content,
String charset) |
HTMLCleanerHandle |
with(Reader content) |
HTMLCleanerHandle |
with(String content) |
HTMLCleanerHandle |
with(org.htmlcleaner.TagNode content) |
void |
write(OutputStream out)
Implements a callback to write content to the provided output stream for sending to the database server.
|
getByteLength, getFormat, getMimetype, getServerTimestamp, setByteLength, setMimetype, setServerTimestamppublic HTMLCleanerHandle()
public HTMLCleanerHandle(org.htmlcleaner.TagNode content)
public org.htmlcleaner.CleanerProperties getConfiguration()
public void setConfiguration(org.htmlcleaner.CleanerProperties configuration)
public org.htmlcleaner.ITagInfoProvider getRulesProvider()
public void setRulesProvider(org.htmlcleaner.ITagInfoProvider rulesProvider)
public org.htmlcleaner.HtmlCleaner getParser()
public void setParser(org.htmlcleaner.HtmlCleaner parser)
public org.htmlcleaner.XmlSerializer getSerializer()
public void setSerializer(org.htmlcleaner.XmlSerializer serializer)
public org.htmlcleaner.TagNode get()
public void set(org.htmlcleaner.TagNode content)
public HTMLCleanerHandle with(org.htmlcleaner.TagNode content)
public void set(File content, String charset) throws IOException
IOExceptionpublic HTMLCleanerHandle with(File content, String charset) throws IOException
IOExceptionpublic void set(InputStream content, String charset) throws IOException
IOExceptionpublic HTMLCleanerHandle with(InputStream content, String charset) throws IOException
IOExceptionpublic void set(Reader content) throws IOException
IOExceptionpublic HTMLCleanerHandle with(Reader content) throws IOException
IOExceptionpublic void set(String content) throws IOException
IOExceptionpublic HTMLCleanerHandle with(String content) throws IOException
IOExceptionpublic void setFormat(Format format)
ContentDescriptorSpecifies the format of the content as binary, JSON, text, or XML.
setFormat in interface ContentDescriptorsetFormat in class BaseHandle<OperationNotSupported,OutputStreamSender>format - the format of the contentpublic void write(OutputStream out) throws IOException
OutputStreamSenderImplements a callback to write content to the provided output stream for sending to the database server.
write in interface OutputStreamSenderout - the output stream receiving the contentIOException - if io problems ariseCopyright © 2013-2017 MarkLogic Corporation.