|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.FileRecord
Represents information about a single file served
Field Summary | |
(package private) java.lang.String |
filename
|
(package private) int |
index
|
(package private) int |
size
|
Constructor Summary | |
FileRecord(int index,
int size,
java.lang.String filename)
Constructs a record describing a shared file |
Method Summary | |
(package private) byte[] |
getBytes()
Flatten the FileRecord |
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 |
Field Detail |
int index
int size
java.lang.String filename
Constructor Detail |
public FileRecord(int index, int size, java.lang.String filename)
index
- index of the filesize
- size of the file in bytesfilename
- file nameMethod Detail |
public int getIndex()
public int getSize()
public java.lang.String getName()
byte[] getBytes()
FileRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |