summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/impl/mail/internet/TextBody.java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2017-12-27 17:02:37 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-27 17:03:47 -0800
commit183cb71663320f16149d83eeebaff7795a4b55f2 (patch)
treebc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/voicemail/impl/mail/internet/TextBody.java
parentfc81a030a7b4f6d4a497f71aed593d398795e7da (diff)
Remove field prefixes.
Test: Existing tests PiperOrigin-RevId: 180230450 Change-Id: I0b2589cfeeaef81e42a04efa48af24b4e4d0e95f
Diffstat (limited to 'java/com/android/voicemail/impl/mail/internet/TextBody.java')
-rw-r--r--java/com/android/voicemail/impl/mail/internet/TextBody.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/voicemail/impl/mail/internet/TextBody.java b/java/com/android/voicemail/impl/mail/internet/TextBody.java
index dae562508..506e1f52e 100644
--- a/java/com/android/voicemail/impl/mail/internet/TextBody.java
+++ b/java/com/android/voicemail/impl/mail/internet/TextBody.java
@@ -25,15 +25,15 @@ import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
public class TextBody implements Body {
- String mBody;
+ String body;
public TextBody(String body) {
- this.mBody = body;
+ this.body = body;
}
@Override
public void writeTo(OutputStream out) throws IOException, MessagingException {
- byte[] bytes = mBody.getBytes("UTF-8");
+ byte[] bytes = body.getBytes("UTF-8");
out.write(Base64.encode(bytes, Base64.CRLF));
}
@@ -43,14 +43,14 @@ public class TextBody implements Body {
* @return
*/
public String getText() {
- return mBody;
+ return body;
}
/** Returns an InputStream that reads this body's text in UTF-8 format. */
@Override
public InputStream getInputStream() throws MessagingException {
try {
- byte[] b = mBody.getBytes("UTF-8");
+ byte[] b = body.getBytes("UTF-8");
return new ByteArrayInputStream(b);
} catch (UnsupportedEncodingException usee) {
return null;