net.anidb.udp
Class UdpResponseEntry

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

public class UdpResponseEntry
extends java.lang.Object

An entry of a response.

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

Method Summary
 DataField getDataFieldAt(int index)
          Returns the data field on the given index.
 int getDataFieldCount()
          Returns the count the data fields.
 java.lang.String getMessageString()
          Returns the data fields as an message string.
 java.lang.String getTrimedMessageString()
          Returns the data fields as an message string without pipes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDataFieldCount

public int getDataFieldCount()
Returns the count the data fields.

Returns:
The count.

getDataFieldAt

public DataField getDataFieldAt(int index)
Returns the data field on the given index.

Parameters:
index - The index.
Returns:
The data field.
Throws:
java.lang.IndexOutOfBoundsException - If the index is out of bounds.

getMessageString

public java.lang.String getMessageString()
Returns the data fields as an message string.

Returns:
The message string or null, if this entry hasn't any data fields.

getTrimedMessageString

public java.lang.String getTrimedMessageString()
Returns the data fields as an message string without pipes.

Returns:
The message string or null, if this entry hasn't any data fields.