Is Java 8 java.util.Base64 a drop-in replacement for sun.misc.BASE64?

Question Are the Java 8 java.util.Base64 MIME Encoder and Decoder a drop-in replacement for the unsupported, internal Java API sun.misc.BASE64Encoder and sun.misc.BASE64Decoder? EDIT (Clarification): …

How to read text inside body of mail using javax.mail

i’m developing a client mail using javax.mail to read mail inside mail box: Properties properties = System.getProperties(); properties.setProperty(“mail.store.protocol”, “imap”); try { …