net.jxta.search.util
Class TextTools

java.lang.Object
  |
  +--net.jxta.search.util.TextTools

public class TextTools
extends java.lang.Object

TextTools encodes text data as base64, just as HexTools encodes hex data.


Constructor Summary
TextTools()
           
 
Method Summary
static java.lang.String base64decode(byte[] buf)
          Decode base64-encoded text in the given buffer.
static java.lang.String base64encode(byte[] buf)
          Encode text in the given buffer.
static void main(java.lang.String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextTools

public TextTools()
Method Detail

base64encode

public static java.lang.String base64encode(byte[] buf)
Encode text in the given buffer.

base64decode

public static java.lang.String base64decode(byte[] buf)
Decode base64-encoded text in the given buffer.

main

public static void main(java.lang.String[] argv)