|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGetFileList
A data structure representing a "Get File" directory listing. Note that a
Get File list may contain only the files and directories in one directory or
all files a directory and in all subdirectories, recursively. See GetFileReqRvCmd.FLAG_EXPAND_DYNAMIC
for
details.
Field Summary | |
static java.lang.String |
GFLISTVERSION_DEFAULT
The Get File directory listing version string used by WinAIM. |
Constructor Summary | |
GetFileList(GetFileEntry[] files)
Creates a new Get File directory list with the given list of files. |
|
GetFileList(java.lang.String gfListVersion,
GetFileEntry[] files)
Creates a new Get File directory listing with the given list version string and the given list of files. |
Method Summary | |
GetFileEntry[] |
getFileEntries()
Returns an array containing the Get File entries in this list. |
java.lang.String |
getGfListVersion()
Returns the Get File listing version string used in this list. |
static GetFileList |
readGetFileList(ByteBlock block)
Reads a Get File directory list from the given block of binary data. |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream out)
Writes a representation of this object to the given stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String GFLISTVERSION_DEFAULT
Constructor Detail |
public GetFileList(GetFileEntry[] files)
new GetFileList(GFLISTVERSION_DEFAULT, files
.
files
- a list of files to use in this listpublic GetFileList(java.lang.String gfListVersion, GetFileEntry[] files)
null
elements.
gfListVersion
- a Get File list version string; this should normally
be GFLISTVERSION_DEFAULT
files
- a list of files to hold in this listMethod Detail |
public static GetFileList readGetFileList(ByteBlock block)
null
if no valid list can be
read. The given block should be the entire block of data sent following
a FileTransferHeader.HEADERTYPE_FILELIST_SENDLIST
header.
block
- a block of data containing a Get File directory listing
public final java.lang.String getGfListVersion()
GFLISTVERSION_DEFAULT
.
public final GetFileEntry[] getFileEntries()
public final void write(java.io.OutputStream out) throws java.io.IOException
LiveWritable
write
in interface LiveWritable
out
- the stream to which to write
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |