]> Pileus Git - ~andy/spades/blob - src/org/pileus/spades/Os.java
Add support for SASL PLAIN authentication
[~andy/spades] / src / org / pileus / spades / Os.java
1 package org.pileus.spades;
2
3 import android.util.Log;
4 import android.util.Base64;
5
6 public class Os
7 {
8         /* Debugging */
9         public static void debug(String txt, Exception e)
10         {
11                 Log.d("Spades", txt, e);
12         }
13         public static void debug(String txt)
14         {
15                 Log.d("Spades", txt);
16         }
17
18         /* Utilities */
19         public static String base64(String txt)
20         {
21                 return Base64.encodeToString(txt.getBytes(), 0);
22         }
23 }