com.kenmccrary.jtella
Class SearchReplyMessage.FileRecord

java.lang.Object
  |
  +--com.kenmccrary.jtella.SearchReplyMessage.FileRecord
Enclosing class:
SearchReplyMessage

public static class SearchReplyMessage.FileRecord
extends java.lang.Object

Represents information about a single file served


Constructor Summary
SearchReplyMessage.FileRecord(int index, int size, java.lang.String fileName)
          Constructs a record describing a shared file
 
Method Summary
 int getIndex()
          Get the index of the file
 java.lang.String getName()
          Get the file name
 int getSize()
          Get the size of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchReplyMessage.FileRecord

public SearchReplyMessage.FileRecord(int index,
                                     int size,
                                     java.lang.String fileName)
Constructs a record describing a shared file
Parameters:
index - index of the file
size - size of the file in bytes
filename - file name
Method Detail

getIndex

public int getIndex()
Get the index of the file
Returns:
index

getSize

public int getSize()
Get the size of the file
Returns:
file size

getName

public java.lang.String getName()
Get the file name
Returns:
file name