Package org.apache.james.mime4j.message
Class SingleBodyBuilder
java.lang.Object
org.apache.james.mime4j.message.SingleBodyBuilder
Builder for
TextBody
and BinaryBody
instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private BodyFactory
private Charset
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
copy
(SingleBody other) static SingleBodyBuilder
create()
static SingleBodyBuilder
createCopy
(SingleBody other) readFrom
(InputStream in) setByteArray
(byte[] bin) setCharset
(Charset charset) use
(BodyFactory bodyFactory)
-
Field Details
-
text
-
bin
private byte[] bin -
charset
-
bodyFactory
-
-
Constructor Details
-
SingleBodyBuilder
SingleBodyBuilder()
-
-
Method Details
-
create
-
createCopy
- Throws:
IOException
-
use
-
setText
-
setByteArray
-
setCharset
-
readFrom
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
copy
- Throws:
IOException
-
buildText
- Throws:
IOException
-
buildBinary
- Throws:
IOException
-
build
- Throws:
IOException
-