org.apache.james.mime4j.message
public class BodyCopier extends java.lang.Object
public static Body copy(Body body)
Body
that can be used (and modified)
independently of the original. The copy should be
disposed of
when it is no longer needed.
The parent
of the returned copy is
null
, that is, the copy is detached from the parent
entity of the original.
body
- body to copy.java.lang.UnsupportedOperationException
- if body
is an instance of SingleBody
that does not support the copy()
operation (or contains such a SingleBody
).java.lang.IllegalArgumentException
- if body
is null
or
body
is a Body
that is neither
a Message
, Multipart
or SingleBody
(or contains such a Body
).Copyright © 2004-2016. All Rights Reserved.