j_waste.network
Class SearchReplyPacketItem

java.lang.Object
  extended byj_waste.network.SearchReplyPacketItem

public class SearchReplyPacketItem
extends java.lang.Object

This is the class for the Search packet type.

Version:
0.1
Author:
Fredrik Hultin (frehul@users.sourceforge.net)

Constructor Summary
SearchReplyPacketItem(int id, int lengthLow, int lengthHigh, long lastModified, java.lang.String replyName, java.lang.String replyMetaData)
          Constructs a new SearchReplyPacketItem with the specified id etc.
 
Method Summary
 int getID()
          Returns the id if this item.
 long getLastModified()
          Returns the time of when this item was last modified.
 int getLengthHigh()
          Returns the four high order bytes of length of this item.
 int getLengthLow()
          Returns the four low order bytes of length of this item.
 int getNumBytes()
          Returns the size of this item in the form of number of bytes.
 java.lang.String getReplyMetaData()
          Returns the reply meta data of this item.
 java.lang.String getReplyName()
          Returns the reply name of this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchReplyPacketItem

public SearchReplyPacketItem(int id,
                             int lengthLow,
                             int lengthHigh,
                             long lastModified,
                             java.lang.String replyName,
                             java.lang.String replyMetaData)
Constructs a new SearchReplyPacketItem with the specified id etc.

Parameters:
id - The id for this item.
lengthLow - The four lower bytes of the length of this file/directory.
lengthHigh - The four higher bytes of the length of this file/directory.
lastModified - The time of when this file/directory was last last modified.
replyName - The reply name for this item.
replyMetaData - The reply meta data for this item (if this item is a directory then replyMetaData="Directory", otherwise replyMetaData="").
Method Detail

getID

public int getID()
Returns the id if this item.

Returns:
the id of this item.

getLengthLow

public int getLengthLow()
Returns the four low order bytes of length of this item.

Returns:
the four low order bytes of length of this item.

getLengthHigh

public int getLengthHigh()
Returns the four high order bytes of length of this item.

Returns:
the four high order bytes of length of this item.

getLastModified

public long getLastModified()
Returns the time of when this item was last modified.

Returns:
the time of when this item was last modified.

getReplyName

public java.lang.String getReplyName()
Returns the reply name of this item.

Returns:
the reply name of this item.

getReplyMetaData

public java.lang.String getReplyMetaData()
Returns the reply meta data of this item.

Returns:
the reply meta data of this item.

getNumBytes

public int getNumBytes()
Returns the size of this item in the form of number of bytes.

Returns:
the size of this item in the form of number of bytes.