src/net/java/sip/communicator/impl/protocol/jabber/IncomingFileTransferRequestJabberImpl.java
/**
     * Accepts the file and starts the transfer.
     *
     * @return a boolean : <code>false</code> if the transfer fails,
     * <code>true</code> otherwise
     */
Accepts the file and starts the transfer.
@return a boolean : false if the transfer fails,
true otherwise
Accepts the file and starts the transfer . @return a boolean : false if the transfer fails true otherwise
@Override
    public FileTransfer acceptFile(File file)
    {
        AbstractFileTransfer incomingTransfer = null;
        IncomingFileTransfer jabberTransfer = fileTransferRequest.accept();
        try
        {
            incomingTransfer
                = new IncomingFileTransferJabberImpl(
                        id, sender, file, jabberTransfer);
            FileTransferCreatedEvent event
                = new FileTransferCreatedEvent(incomingTransfer, new Date());
            fileTransferOpSet.fireFileTransferCreated(event);
            jabberTransfer.recieveFile(file);
            new OperationSetFileTransferJabberImpl
                .FileTransferProgressThread(
                jabberTransfer, incomingTransfer, getFileSize()).start();
        }
        catch (IOException | SmackException e)
        {
            if (logger.isDebugEnabled())
                logger.debug("Receiving file failed.", e);
        }
        return incomingTransfer;
    }
@ Override public FileTransfer acceptFile ( File file ) { AbstractFileTransfer incomingTransfer = null ; IncomingFileTransfer jabberTransfer = fileTransferRequest . accept ( ) ; try { incomingTransfer = new IncomingFileTransferJabberImpl ( id , sender , file , jabberTransfer ) ; FileTransferCreatedEvent event = new FileTransferCreatedEvent ( incomingTransfer , new Date ( ) ) ; fileTransferOpSet . fireFileTransferCreated ( event ) ; jabberTransfer . recieveFile ( file ) ; new OperationSetFileTransferJabberImpl . FileTransferProgressThread ( jabberTransfer , incomingTransfer , getFileSize ( ) ) . start ( ) ; } catch ( IOException | SmackException e ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Receiving file failed." , e ) ; } return incomingTransfer ; }
Accepts the file and starts the transfer.
Accepts the file and starts the transfer .