Class SingleBodyBuilder
java.lang.Object
org.apache.james.mime4j.message.SingleBodyBuilder
Builder for
TextBody and BinaryBody instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private BodyFactoryprivate Charsetprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()copy(SingleBody other) static SingleBodyBuildercreate()static SingleBodyBuildercreateCopy(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
-