Class MailHTMLBodyConverter
- java.lang.Object
-
- com.levigo.jadice.server.mail.worker.internal.converter.MailHTMLBodyConverter
-
- All Implemented Interfaces:
MailBodyConverter
public class MailHTMLBodyConverter extends Object implements MailBodyConverter
-
-
Constructor Summary
Constructors Constructor Description MailHTMLBodyConverter(HTMLConversionHandler htmlConversionHandler, LimitSupport limitSupport, Stream htmlStream, com.levigo.jadice.server.mail.worker.internal.HTMLEnhancer htmlEnhancer, StreamResolverFactory streamResolverFactory, MailBodyCreationContext mailBodyCC)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream
convertHTMLBody()
protected Stream
convertHTMLBody(Stream htmlStream)
Renders a HTML stream.protected Stream
convertHTMLBodyWithHTMLConversionHandler(Stream htmlStream)
protected static List<String>
findCIDs(String htmlString)
protected boolean
isRtfHtmlStream(Stream stream)
protected CIDReplacementResult
substituteCIDs(StreamResolver streamResolver, String htmlString)
protected CIDReplacementResult
writeStreamToJobTmpFolder(Stream stream, String referencedCID, String htmlString)
-
-
-
Constructor Detail
-
MailHTMLBodyConverter
public MailHTMLBodyConverter(HTMLConversionHandler htmlConversionHandler, LimitSupport limitSupport, Stream htmlStream, com.levigo.jadice.server.mail.worker.internal.HTMLEnhancer htmlEnhancer, StreamResolverFactory streamResolverFactory, MailBodyCreationContext mailBodyCC)
-
-
Method Detail
-
isRtfHtmlStream
protected boolean isRtfHtmlStream(Stream stream)
-
substituteCIDs
protected CIDReplacementResult substituteCIDs(StreamResolver streamResolver, String htmlString) throws IOException
- Throws:
IOException
-
writeStreamToJobTmpFolder
protected CIDReplacementResult writeStreamToJobTmpFolder(Stream stream, String referencedCID, String htmlString) throws IOException
- Throws:
IOException
-
convertHTMLBodyWithHTMLConversionHandler
protected Stream convertHTMLBodyWithHTMLConversionHandler(Stream htmlStream) throws Throwable
- Throws:
Throwable
-
-