org.walluck.oscar.handlers.icq.tcp
Class FileTransfer

java.lang.Object
  extended byorg.walluck.oscar.handlers.icq.tcp.FileTransfer

public class FileTransfer
extends java.lang.Object

ICQ file transfer.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static int FT_STATE_CONFIRMING_FILE
          Describe constant FT_STATE_CONFIRMING_FILE here.
static int FT_STATE_DISCONNECTED
          Describe constant FT_STATE_DISCONNECTED here.
static int FT_STATE_HANDSHAKE
          Describe constant FT_STATE_HANDSHAKE here.
static int FT_STATE_RECEIVING_FILE
          Describe constant FT_STATE_RECEIVING_FILE here.
static int FT_STATE_SENDING_FILE
          Describe constant FT_STATE_SENDING_FILE here.
static int FT_STATE_WAIT_FOR_CLIENT_INIT
          Describe constant FT_STATE_WAIT_FOR_CLIENT_INIT here.
static int FT_STATE_WAIT_FOR_FILE_INFO
          Describe constant FT_STATE_WAIT_FOR_FILE_INFO here.
static int FT_STATE_WAIT_FOR_SERVER_INIT
          Describe constant FT_STATE_WAIT_FOR_SERVER_INIT here.
static int FT_STATE_WAIT_FOR_START
          Describe constant FT_STATE_WAIT_FOR_START here.
 
Constructor Summary
FileTransfer()
          Creates a new ICQ file transfer.
 
Method Summary
 void info(java.lang.String fileName, int fileSize)
          Describe info method here.
 void initClient(java.lang.String localName, int numFiles, long totSize)
          Describe initClient method here.
 void initServer(java.lang.String localName)
          Describe initServer method here.
 void setSpeed(int speed)
          Describe setSpeed method here.
 void start(int filePos, int file)
          Describe start method here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FT_STATE_DISCONNECTED

public static final int FT_STATE_DISCONNECTED
Describe constant FT_STATE_DISCONNECTED here.

See Also:
Constant Field Values

FT_STATE_HANDSHAKE

public static final int FT_STATE_HANDSHAKE
Describe constant FT_STATE_HANDSHAKE here.

See Also:
Constant Field Values

FT_STATE_WAIT_FOR_CLIENT_INIT

public static final int FT_STATE_WAIT_FOR_CLIENT_INIT
Describe constant FT_STATE_WAIT_FOR_CLIENT_INIT here.

See Also:
Constant Field Values

FT_STATE_WAIT_FOR_SERVER_INIT

public static final int FT_STATE_WAIT_FOR_SERVER_INIT
Describe constant FT_STATE_WAIT_FOR_SERVER_INIT here.

See Also:
Constant Field Values

FT_STATE_WAIT_FOR_START

public static final int FT_STATE_WAIT_FOR_START
Describe constant FT_STATE_WAIT_FOR_START here.

See Also:
Constant Field Values

FT_STATE_WAIT_FOR_FILE_INFO

public static final int FT_STATE_WAIT_FOR_FILE_INFO
Describe constant FT_STATE_WAIT_FOR_FILE_INFO here.

See Also:
Constant Field Values

FT_STATE_RECEIVING_FILE

public static final int FT_STATE_RECEIVING_FILE
Describe constant FT_STATE_RECEIVING_FILE here.

See Also:
Constant Field Values

FT_STATE_SENDING_FILE

public static final int FT_STATE_SENDING_FILE
Describe constant FT_STATE_SENDING_FILE here.

See Also:
Constant Field Values

FT_STATE_CONFIRMING_FILE

public static final int FT_STATE_CONFIRMING_FILE
Describe constant FT_STATE_CONFIRMING_FILE here.

See Also:
Constant Field Values
Constructor Detail

FileTransfer

public FileTransfer()
Creates a new ICQ file transfer.

Method Detail

initClient

public void initClient(java.lang.String localName,
                       int numFiles,
                       long totSize)
                throws java.io.IOException
Describe initClient method here.

Parameters:
localName - a String value
numFiles - an int value
totSize - a long value
Throws:
java.io.IOException - if an error occurs

initServer

public void initServer(java.lang.String localName)
                throws java.io.IOException
Describe initServer method here.

Parameters:
localName - a String value
Throws:
java.io.IOException - if an error occurs

info

public void info(java.lang.String fileName,
                 int fileSize)
          throws java.io.IOException
Describe info method here.

Parameters:
fileName - a String value
fileSize - an int value
Throws:
java.io.IOException - if an error occurs

start

public void start(int filePos,
                  int file)
           throws java.io.IOException
Describe start method here.

Parameters:
filePos - an int value
file - an int value
Throws:
java.io.IOException - if an error occurs

setSpeed

public void setSpeed(int speed)
              throws java.io.IOException
Describe setSpeed method here.

Parameters:
speed - an int value
Throws:
java.io.IOException - if an error occurs