@Throws(IOException::class) protected fun openConnection(url: URL?, proxy: Proxy?): URLConnection? { require(!(url == null || proxy == null)) { "url == null || proxy == null" } return sun.net.www.protocol.ftp.FtpURLConnection(url, proxy) }
Returns a connection , which is established via the < code > proxy < /code > , to the FTP server specified by this < code > URL < /code > . If < code > proxy < /code > is DIRECT type , the connection is made in normal way .