|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.ac.tuwien.infosys.rnue.helpers.search.FileListImpl
An object of the class FileListImpl represents a list of files which can be reached on a peer with a specific URL prefix.
It provides a constructor to set the URL prefix and to put the files into the FileListIMPL.
Constructor Summary | |
FileListImpl(java.lang.String downloadURLPrefix,
IFile[] fileArray)
Constructs a FileListImpl object. |
Method Summary | |
java.util.Enumeration |
files()
Returns an java.lang.Enumeartion of the FileList elements. |
java.lang.String |
getDownloadURLPrefix()
Returns the URL prefix. |
void |
printToStream(java.io.OutputStream os)
Prints the file list elements (path + file name + (size)) on the given java.io.OutputStream. |
int |
size()
Returns the number of entries in the file list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileListImpl(java.lang.String downloadURLPrefix, IFile[] fileArray)
downloadURLPrefix
- java.lang.String
representing the protocol, host, and port number of the ShareMe
peer to access the files in the FileList. The string must have
the following format: {protocol}"://"{host}":"{port}
(e.g. "http://pent223.infosys.tuwien.ac.at:10003"
)fileArray
- array of IFile
files to be
put into the FileList.Method Detail |
public java.lang.String getDownloadURLPrefix()
getDownloadURLPrefix
in interface IFileList
public java.util.Enumeration files()
files
in interface IFileList
java.lang.Enumeartion
of IFile
elements in
the list.public int size()
size
in interface IFileList
public void printToStream(java.io.OutputStream os) throws ShareMeException
printToStream
in interface IFileList
os
- java.io.OutStream to write the file list at.
ShareMeException
- If no output stream passed to print.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |