public class FileTransfer extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
FileTransfer()
Creates a new ICQ file transfer.
|
Modifier and Type | Method and Description |
---|---|
void |
info(String fileName,
int fileSize)
Describe
info method here. |
void |
initClient(String localName,
int numFiles,
long totSize)
Describe
initClient method here. |
void |
initServer(String localName)
Describe
initServer method here. |
void |
setSpeed(int speed)
Describe
setSpeed method here. |
void |
start(int filePos,
int file)
Describe
start method here. |
public static final int FT_STATE_DISCONNECTED
FT_STATE_DISCONNECTED
here.public static final int FT_STATE_HANDSHAKE
FT_STATE_HANDSHAKE
here.public static final int FT_STATE_WAIT_FOR_CLIENT_INIT
FT_STATE_WAIT_FOR_CLIENT_INIT
here.public static final int FT_STATE_WAIT_FOR_SERVER_INIT
FT_STATE_WAIT_FOR_SERVER_INIT
here.public static final int FT_STATE_WAIT_FOR_START
FT_STATE_WAIT_FOR_START
here.public static final int FT_STATE_WAIT_FOR_FILE_INFO
FT_STATE_WAIT_FOR_FILE_INFO
here.public static final int FT_STATE_RECEIVING_FILE
FT_STATE_RECEIVING_FILE
here.public static final int FT_STATE_SENDING_FILE
FT_STATE_SENDING_FILE
here.public static final int FT_STATE_CONFIRMING_FILE
FT_STATE_CONFIRMING_FILE
here.public void initClient(String localName, int numFiles, long totSize) throws IOException
initClient
method here.localName
- a String
valuenumFiles
- an int
valuetotSize
- a long
valueIOException
- if an error occurspublic void initServer(String localName) throws IOException
initServer
method here.localName
- a String
valueIOException
- if an error occurspublic void info(String fileName, int fileSize) throws IOException
info
method here.fileName
- a String
valuefileSize
- an int
valueIOException
- if an error occurspublic void start(int filePos, int file) throws IOException
start
method here.filePos
- an int
valuefile
- an int
valueIOException
- if an error occurspublic void setSpeed(int speed) throws IOException
setSpeed
method here.speed
- an int
valueIOException
- if an error occurs