mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 22:28:10 -05:00
Added (still rather shallow) missing Javadocs for classes in BinaryAttachmentBody hierarchy
This commit is contained in:
parent
547eb74774
commit
2be10febf9
@ -12,6 +12,10 @@ import com.fsck.k9.mail.Body;
|
|||||||
import com.fsck.k9.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.fsck.k9.mail.filter.Base64OutputStream;
|
import com.fsck.k9.mail.filter.Base64OutputStream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Superclass for attachments that contain binary data.
|
||||||
|
* The source for the data differs for the subclasses.
|
||||||
|
*/
|
||||||
public abstract class BinaryAttachmentBody implements Body {
|
public abstract class BinaryAttachmentBody implements Body {
|
||||||
protected String mEncoding;
|
protected String mEncoding;
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ import android.net.Uri;
|
|||||||
|
|
||||||
import com.fsck.k9.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An attachment whose contents are loaded from an URI.
|
||||||
|
*/
|
||||||
public class LocalAttachmentBody extends BinaryAttachmentBody {
|
public class LocalAttachmentBody extends BinaryAttachmentBody {
|
||||||
private Application mApplication;
|
private Application mApplication;
|
||||||
private Uri mUri;
|
private Uri mUri;
|
||||||
|
@ -8,6 +8,9 @@ import java.io.InputStream;
|
|||||||
|
|
||||||
import com.fsck.k9.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An attachment whose contents are contained in a file.
|
||||||
|
*/
|
||||||
public class TempFileBody extends BinaryAttachmentBody {
|
public class TempFileBody extends BinaryAttachmentBody {
|
||||||
private final File mFile;
|
private final File mFile;
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ import org.apache.james.mime4j.util.MimeUtil;
|
|||||||
import com.fsck.k9.mail.CompositeBody;
|
import com.fsck.k9.mail.CompositeBody;
|
||||||
import com.fsck.k9.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An attachment containing a body of type message/rfc822
|
||||||
|
* whose contents are contained in a file.
|
||||||
|
*/
|
||||||
public class TempFileMessageBody extends TempFileBody implements CompositeBody {
|
public class TempFileMessageBody extends TempFileBody implements CompositeBody {
|
||||||
|
|
||||||
public TempFileMessageBody(String filename) {
|
public TempFileMessageBody(String filename) {
|
||||||
|
Loading…
Reference in New Issue
Block a user