net.anidb.udp
Class DataDecoder

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

public class DataDecoder
extends java.lang.Object

Decodes the data of a response.

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 decode(java.lang.String rawData)
          Decodes the given string.
static DataDecoder 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 DataDecoder getInstance()
Returns an instance of the class.

Returns:
The instance.

decode

public java.lang.String decode(java.lang.String rawData)
Decodes the given string.

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