net.anidb.udp
Class DataEncoder

java.lang.Object
  extended by net.anidb.udp.DataEncoder

public class DataEncoder
extends java.lang.Object

Encodes the data of a request.

See Content Encoding for further information.

Version:
1.0, 12.01.2010
Author:
grizzlyxp (http://anidb.net/perl-bin/animedb.pl?show=userpage&uid=63935)

Method Summary
 java.lang.String encode(java.lang.String rawData)
          Encodes the given string.
static DataEncoder getInstance()
          Returns an instance of the class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DataEncoder getInstance()
Returns an instance of the class.

Returns:
The instance.

encode

public java.lang.String encode(java.lang.String rawData)
Encodes the given string.

Parameters:
rawData - The string.
Returns:
The encoded string.
Throws:
java.lang.IllegalArgumentException - If the given string is null.