title: Build warnings regarding using Sun proprietary API
body: <p>I am trying to clean up my build environment and have discovered a couple of warnings reported around usage of Sun proprietary API's.</p>
  
  <pre><code>[javac] /workspace/&lt;path-to-files&gt;/Handler.java:18: warning: sun.net.www.protocol.http.Handler is Sun proprietary API and may be removed in a future release
  [javac] public class Handler extends sun.net.www.protocol.http.Handler {
  [javac]                                                       ^
  [javac] /workspace/&lt;path-to-files&gt;/HttpClient.java:16: warning: sun.net.www.http.HttpClient is Sun proprietary API and may be removed in a future release 
  [javac] public class HttpClient extends sun.net.www.http.HttpClient {
  [javac]
  [javac] /workspace/&lt;path-to-files&gt;/HttpURLConnection.java:19: warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
  [javac] public class HttpURLConnection extends sun.net.www.protocol.http.HttpURLConnection {
  [javac]                                                                 ^
  </code></pre>
  
  <p>and...</p>
  
  <pre><code>[javac] /workspace/&lt;path-to-files&gt;/JavaFile.java:17: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
  [javac] import sun.misc.BASE64Decoder;
  [javac]                ^
  [javac] /workspace/&lt;path-to-files&gt;/JavaFile.java:338: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
  [javac]          BASE64Encoder encoder = new BASE64Encoder();
  [javac]          ^
  </code></pre>
  
  <p>Can anyone suggest a good alternative to these API's? Or can these be replaced with the official Java API's? I realise that these are just warnings, but this is something I plan on resolving.</p>