public class HTMLCleanerHandle extends BaseHandle<OperationNotSupported,OutputStreamSender> implements OutputStreamSender, XMLWriteHandle
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, setByteLength, setMimetype
public 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
IOException
public HTMLCleanerHandle with(File content, String charset) throws IOException
IOException
public void set(InputStream content, String charset) throws IOException
IOException
public HTMLCleanerHandle with(InputStream content, String charset) throws IOException
IOException
public void set(Reader content) throws IOException
IOException
public HTMLCleanerHandle with(Reader content) throws IOException
IOException
public void set(String content) throws IOException
IOException
public HTMLCleanerHandle with(String content) throws IOException
IOException
public void setFormat(Format format)
ContentDescriptor
setFormat
in interface ContentDescriptor
setFormat
in class BaseHandle<OperationNotSupported,OutputStreamSender>
format
- the format of the contentpublic void write(OutputStream out) throws IOException
OutputStreamSender
write
in interface OutputStreamSender
out
- the output stream receiving the contentIOException
- if io problems ariseCopyright © 2013-2016 MarkLogic Corporation.