Logo Search packages:      
Sourcecode: jftp version File versions  Download package

boolean net::sf::jftp::net::FtpConnection::type ( String  code  )  [inline]

Set type (L8,I,A for example).

True if the type was changed successfully, false otherwise

Definition at line 2740 of file FtpConnection.java.

References getLine(), jcon, net::sf::jftp::net::JConnection::send(), and net::sf::jftp::net::FtpConstants::TYPE.

Referenced by ascii(), binary(), and list().

        jcon.send(TYPE + " " + code);

        String tmp = getLine(POSITIVE);//FTP200_OK);

        if((tmp != null) && tmp.startsWith(POSITIVE))//FTP200_OK))
            typeNow = code;

            return true;

        return false;

Generated by  Doxygen 1.6.0   Back to index