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 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:
      startMessage in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • endMessage

      public void endMessage() throws org.apache.james.mime4j.MimeException
      Specified by:
      endMessage in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • startBodyPart

      public void startBodyPart() throws org.apache.james.mime4j.MimeException
      Specified by:
      startBodyPart in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • endBodyPart

      public void endBodyPart() throws org.apache.james.mime4j.MimeException
      Specified by:
      endBodyPart in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • startHeader

      public void startHeader() throws org.apache.james.mime4j.MimeException
      Specified by:
      startHeader in interface org.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:
      field in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • endHeader

      public void endHeader() throws org.apache.james.mime4j.MimeException
      Specified by:
      endHeader in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • preamble

      public void preamble(InputStream is) throws org.apache.james.mime4j.MimeException, IOException
      Specified by:
      preamble in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
      IOException
    • epilogue

      public void epilogue(InputStream is) throws org.apache.james.mime4j.MimeException, IOException
      Specified by:
      epilogue in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
      IOException
    • startMultipart

      public void startMultipart(org.apache.james.mime4j.stream.BodyDescriptor bd) throws org.apache.james.mime4j.MimeException
      Specified by:
      startMultipart in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • endMultipart

      public void endMultipart() throws org.apache.james.mime4j.MimeException
      Specified by:
      endMultipart in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
    • getBody

      public InputStream getBody()
    • getCharset

      public String getCharset()
    • getMimeType

      public String getMimeType()
    • body

      public void body(org.apache.james.mime4j.stream.BodyDescriptor bd, InputStream is) throws org.apache.james.mime4j.MimeException, IOException
      Specified by:
      body in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
      IOException
    • raw

      public void raw(InputStream is) throws org.apache.james.mime4j.MimeException, IOException
      Specified by:
      raw in interface org.apache.james.mime4j.parser.ContentHandler
      Throws:
      org.apache.james.mime4j.MimeException
      IOException