org.walluck.oscar.handlers.filetransfer
Class GetFileEntry

java.lang.Object
  extended byorg.walluck.oscar.handlers.filetransfer.GetFileEntry

public class GetFileEntry
extends java.lang.Object

Represents an entry in the GetFile protocol.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static long FLAG_DIR
          Directory flag.
static int TYPE_FILENAME
          File name.
static int TYPE_FILESIZE
          File size.
static int TYPE_FLAGS
          Flags.
static int TYPE_LAST
          The last TLV in an entry.
static int TYPE_LASTMOD
          Last modification time.
static int TYPE_UNKNOWN0505
          Unknown 0x0505.
 
Constructor Summary
GetFileEntry()
          Create a new GetFile entry.
 
Method Summary
 java.lang.String getFilename()
          Get the value of filename.
 long getFilesize()
          Get the value of filesize.
 int getFlags()
          Get the value of flags.
 long getLastmod()
          Get the value of lastmod.
 short getUnknown0505()
          Get the value of unknown0505.
 void setFilename(java.lang.String filename)
          Set the value of filename.
 void setFilesize(long filesize)
          Set the value of filesize.
 void setFlags(int flags)
          Set the value of flags.
 void setLastmod(long lastmod)
          Set the value of lastmod.
 void setUnknown0505(short unknown0505)
          Set the value of unknown0505.
 java.lang.String toString()
          Return the string representation of this GetFileEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_DIR

public static final long FLAG_DIR
Directory flag.

See Also:
Constant Field Values

TYPE_LASTMOD

public static final int TYPE_LASTMOD
Last modification time.

See Also:
Constant Field Values

TYPE_FILESIZE

public static final int TYPE_FILESIZE
File size.

See Also:
Constant Field Values

TYPE_FILENAME

public static final int TYPE_FILENAME
File name.

See Also:
Constant Field Values

TYPE_UNKNOWN0505

public static final int TYPE_UNKNOWN0505
Unknown 0x0505.

See Also:
Constant Field Values

TYPE_FLAGS

public static final int TYPE_FLAGS
Flags.

See Also:
Constant Field Values

TYPE_LAST

public static final int TYPE_LAST
The last TLV in an entry.

See Also:
Constant Field Values
Constructor Detail

GetFileEntry

public GetFileEntry()
Create a new GetFile entry.

Method Detail

getFilename

public java.lang.String getFilename()
Get the value of filename.

Returns:
the value of filename.

setFilename

public void setFilename(java.lang.String filename)
Set the value of filename.

Parameters:
filename - Value to assign to filename.

getFilesize

public long getFilesize()
Get the value of filesize.

Returns:
the value of filesize.

setFilesize

public void setFilesize(long filesize)
Set the value of filesize.

Parameters:
filesize - Value to assign to filesize.

getLastmod

public long getLastmod()
Get the value of lastmod.

Returns:
the value of lastmod.

setLastmod

public void setLastmod(long lastmod)
Set the value of lastmod.

Parameters:
lastmod - Value to assign to lastmod.

getUnknown0505

public short getUnknown0505()
Get the value of unknown0505.

Returns:
the value of unknown0505.

setUnknown0505

public void setUnknown0505(short unknown0505)
Set the value of unknown0505.

Parameters:
unknown0505 - Value to assign to unknown0505.

getFlags

public int getFlags()
Get the value of flags.

Returns:
the value of flags.

setFlags

public void setFlags(int flags)
Set the value of flags.

Parameters:
flags - Value to assign to flags.

toString

public java.lang.String toString()
Return the string representation of this GetFileEntry.

Returns:
the string representing this GetFile entry