mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-25 15:11:52 -05:00
Eliminate unnecessary override in LocalAttachmentBody.
The overriding code is the same as the overridden code.
This commit is contained in:
parent
e20170c996
commit
33678ea022
@ -4084,31 +4084,6 @@ public class LocalStore extends Store implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void writeTo(OutputStream out) throws IOException, MessagingException {
|
|
||||||
InputStream in = getInputStream();
|
|
||||||
try {
|
|
||||||
boolean closeStream = false;
|
|
||||||
if (MimeUtil.isBase64Encoding(mEncoding)) {
|
|
||||||
out = new Base64OutputStream(out);
|
|
||||||
closeStream = true;
|
|
||||||
} else if (MimeUtil.isQuotedPrintableEncoded(mEncoding)){
|
|
||||||
out = new QuotedPrintableOutputStream(out, false);
|
|
||||||
closeStream = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
IOUtils.copy(in, out);
|
|
||||||
} finally {
|
|
||||||
if (closeStream) {
|
|
||||||
out.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
in.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Uri getContentUri() {
|
public Uri getContentUri() {
|
||||||
return mUri;
|
return mUri;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user