public class EntitySerializer extends Object
MimeParts objects.| Modifier and Type | Field and Description |
|---|---|
static EntitySerializer |
Default
Default EntitySerializer implementation.
|
| Constructor and Description |
|---|
EntitySerializer()
Constructs a default EntitySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
javax.mail.internet.MimeMessage |
deserialize(byte[] messageBytes)
Deserializes a MimeMessage from a raw byte array representation.
|
javax.mail.internet.MimeMessage |
deserialize(InputStream stream)
Deserializes a MimeMessage from an input stream.
|
javax.mail.internet.MimeMessage |
deserialize(Reader reader)
Deserializes a MimeMessage from a reader.
|
javax.mail.internet.MimeMessage |
deserialize(String messageText)
Deserializes a MimeMessage from a raw String representation.
|
String |
serialize(Collection<javax.mail.internet.MimeBodyPart> parts,
String boundary)
Serializes a collection of MimeBodyPart to a string with a given boundary.
|
void |
serialize(Collection<javax.mail.internet.MimeBodyPart> parts,
String boundary,
OutputStream stream)
Serializes a collection of MimeBodyPart to an output stream with a given boundary.
|
void |
serialize(Collection<javax.mail.internet.MimeBodyPart> parts,
String boundary,
Writer writer)
Serializes a collection of MimeBodyPart to a writer with a given boundary.
|
String |
serialize(javax.mail.internet.MimePart message)
Serializes a MimePart to a String.
|
void |
serialize(javax.mail.internet.MimePart message,
OutputStream stream)
Serializes a MimePart to and output stream.
|
void |
serialize(javax.mail.internet.MimePart message,
Writer writer)
Serializes a MimePart to a writer.
|
byte[] |
serializeToBytes(Collection<javax.mail.internet.MimeBodyPart> parts,
String boundary)
Serializes a collection of MimeBodyPart to a byte array with a given boundary.
|
byte[] |
serializeToBytes(javax.mail.internet.MimePart message)
Serializes a MimePart to a byte array.
|
public static final EntitySerializer Default
public EntitySerializer()
public void serialize(javax.mail.internet.MimePart message,
OutputStream stream)
entity - The entity to serialize.stream - The output stream that the serialized object will be written to.public void serialize(javax.mail.internet.MimePart message,
Writer writer)
entity - The entity to serialize.stream - The writer that the serialized object will be written to.public String serialize(javax.mail.internet.MimePart message)
entity - The entity to serialize.public byte[] serializeToBytes(javax.mail.internet.MimePart message)
entity - The entity to serialize.public void serialize(Collection<javax.mail.internet.MimeBodyPart> parts, String boundary, Writer writer)
entity - The entities to serialize.boundary - The boundary string that will separate each entity.writer - The writer that the entities will be serialized to.public String serialize(Collection<javax.mail.internet.MimeBodyPart> parts, String boundary)
entity - The entities to serialize.boundary - The boundary string that will separate each entity.public void serialize(Collection<javax.mail.internet.MimeBodyPart> parts, String boundary, OutputStream stream)
entity - The entities to serialize.boundary - The boundary string that will separate each entity.stream - The output stream that the entities will be serialized to.public byte[] serializeToBytes(Collection<javax.mail.internet.MimeBodyPart> parts, String boundary)
entity - The entities to serialize.boundary - The boundary string that will separate each entity.public javax.mail.internet.MimeMessage deserialize(InputStream stream)
stream - The input stream containing the serialized entity.public javax.mail.internet.MimeMessage deserialize(Reader reader)
stream - The reader containing the serialized entity.public javax.mail.internet.MimeMessage deserialize(String messageText)
stream - A raw String representation of the entity.public javax.mail.internet.MimeMessage deserialize(byte[] messageBytes)
stream - A raw byte array representation of the entity.Copyright © 2010-2016 NHIN Direct. All Rights Reserved.