Package org.docx4j.convert.in.xhtml
Class MHTContentHandler
java.lang.Object
org.docx4j.convert.in.xhtml.MHTContentHandler
- All Implemented Interfaces:
org.apache.james.mime4j.parser.ContentHandler
public class MHTContentHandler
extends Object
implements org.apache.james.mime4j.parser.ContentHandler
This class allows us to get the body
- Author:
- jharrop
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbody(org.apache.james.mime4j.stream.BodyDescriptor bd, InputStream is) voidvoidvoidvoidvoidepilogue(InputStream is) voidfield(org.apache.james.mime4j.stream.Field rawField) getBody()voidpreamble(InputStream is) voidraw(InputStream is) voidvoidvoidvoidstartMultipart(org.apache.james.mime4j.stream.BodyDescriptor bd)
-
Field Details
-
log
public static org.slf4j.Logger log
-
-
Constructor Details
-
MHTContentHandler
public MHTContentHandler()
-
-
Method Details
-
startMessage
public void startMessage() throws org.apache.james.mime4j.MimeException- Specified by:
startMessagein interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
endMessage
public void endMessage() throws org.apache.james.mime4j.MimeException- Specified by:
endMessagein interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
startBodyPart
public void startBodyPart() throws org.apache.james.mime4j.MimeException- Specified by:
startBodyPartin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
endBodyPart
public void endBodyPart() throws org.apache.james.mime4j.MimeException- Specified by:
endBodyPartin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
startHeader
public void startHeader() throws org.apache.james.mime4j.MimeException- Specified by:
startHeaderin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
field
public void field(org.apache.james.mime4j.stream.Field rawField) throws org.apache.james.mime4j.MimeException - Specified by:
fieldin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
endHeader
public void endHeader() throws org.apache.james.mime4j.MimeException- Specified by:
endHeaderin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
preamble
- Specified by:
preamblein interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeExceptionIOException
-
epilogue
- Specified by:
epiloguein interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeExceptionIOException
-
startMultipart
public void startMultipart(org.apache.james.mime4j.stream.BodyDescriptor bd) throws org.apache.james.mime4j.MimeException - Specified by:
startMultipartin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
endMultipart
public void endMultipart() throws org.apache.james.mime4j.MimeException- Specified by:
endMultipartin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeException
-
getBody
-
getCharset
-
getMimeType
-
body
public void body(org.apache.james.mime4j.stream.BodyDescriptor bd, InputStream is) throws org.apache.james.mime4j.MimeException, IOException - Specified by:
bodyin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeExceptionIOException
-
raw
- Specified by:
rawin interfaceorg.apache.james.mime4j.parser.ContentHandler- Throws:
org.apache.james.mime4j.MimeExceptionIOException
-