public class DefaultEntityBuilder
extends java.lang.Object
implements org.apache.james.mime4j.parser.ContentHandler
Constructor and Description |
---|
DefaultEntityBuilder(org.apache.james.mime4j.dom.Entity entity,
org.apache.james.mime4j.message.BodyFactory bodyFactory) |
Modifier and Type | Method and Description |
---|---|
void |
body(org.apache.james.mime4j.stream.BodyDescriptor bd,
java.io.InputStream is) |
void |
endBodyPart() |
void |
endHeader() |
void |
endMessage() |
void |
endMultipart() |
void |
epilogue(java.io.InputStream is) |
void |
field(org.apache.james.mime4j.stream.Field field) |
org.apache.james.mime4j.message.BodyFactory |
getBodyFactory() |
void |
postBody(org.apache.james.mime4j.dom.Entity e,
org.apache.james.mime4j.stream.BodyDescriptor bd,
org.apache.james.mime4j.dom.Body b)
Called once the
Body b has been |
void |
postMultipart(java.lang.Object multipart)
Called when parsing of multipart ends
|
void |
preamble(java.io.InputStream is) |
void |
preMultipart(org.apache.james.mime4j.dom.Multipart multiPart)
The given Multipart is added into the mime tree
|
void |
raw(java.io.InputStream is)
Unsupported.
|
void |
startBodyPart() |
void |
startHeader() |
void |
startMessage() |
void |
startMultipart(org.apache.james.mime4j.stream.BodyDescriptor bd) |
public DefaultEntityBuilder(org.apache.james.mime4j.dom.Entity entity, org.apache.james.mime4j.message.BodyFactory bodyFactory)
public void startMessage() throws org.apache.james.mime4j.MimeException
startMessage
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.startMessage()
public void endMessage() throws org.apache.james.mime4j.MimeException
endMessage
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.endMessage()
public void startHeader() throws org.apache.james.mime4j.MimeException
startHeader
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.startHeader()
public void field(org.apache.james.mime4j.stream.Field field) throws org.apache.james.mime4j.MimeException
field
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
org.apache.james.mime4j.parser.ContentHandler#field(RawField)
public void endHeader() throws org.apache.james.mime4j.MimeException
endHeader
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.endHeader()
public void startMultipart(org.apache.james.mime4j.stream.BodyDescriptor bd) throws org.apache.james.mime4j.MimeException
startMultipart
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.startMultipart(org.apache.james.mime4j.stream.BodyDescriptor)
public void preMultipart(org.apache.james.mime4j.dom.Multipart multiPart)
multiPart
- public void body(org.apache.james.mime4j.stream.BodyDescriptor bd, java.io.InputStream is) throws org.apache.james.mime4j.MimeException, java.io.IOException
body
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
java.io.IOException
ContentHandler.body(org.apache.james.mime4j.stream.BodyDescriptor,
java.io.InputStream)
public void postBody(org.apache.james.mime4j.dom.Entity e, org.apache.james.mime4j.stream.BodyDescriptor bd, org.apache.james.mime4j.dom.Body b)
Body
b has beene
- b
- public void endMultipart() throws org.apache.james.mime4j.MimeException
endMultipart
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.endMultipart()
public void postMultipart(java.lang.Object multipart)
multipart
- Multipart
object ?public void startBodyPart() throws org.apache.james.mime4j.MimeException
startBodyPart
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.startBodyPart()
public void endBodyPart() throws org.apache.james.mime4j.MimeException
endBodyPart
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
ContentHandler.endBodyPart()
public void epilogue(java.io.InputStream is) throws org.apache.james.mime4j.MimeException, java.io.IOException
epilogue
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
java.io.IOException
ContentHandler.epilogue(java.io.InputStream)
public void preamble(java.io.InputStream is) throws org.apache.james.mime4j.MimeException, java.io.IOException
preamble
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
java.io.IOException
ContentHandler.preamble(java.io.InputStream)
public void raw(java.io.InputStream is) throws org.apache.james.mime4j.MimeException, java.io.IOException
raw
in interface org.apache.james.mime4j.parser.ContentHandler
org.apache.james.mime4j.MimeException
java.io.IOException
ContentHandler.raw(java.io.InputStream)
public org.apache.james.mime4j.message.BodyFactory getBodyFactory()
Copyright © 2021. All Rights Reserved.