private void initStreams() throws IOException {
        if (out == null) {
            if (maxUpload == FTPConnection.MAX_UPLOAD_BANDWIDTH
                    || isControllConnection()) {
                out = socket.getOutputStream();
            } else {
                out = new BandwidthControlledOutputStream(socket
                        .getOutputStream(), maxUpload);
            }
        }
        if (in == null) {
            if (maxDownload == FTPConnection.MAX_DOWNLOAD_BANDWIDTH
                    || isControllConnection()) {
                in = socket.getInputStream();
            } else {
                in = new BandwidthControlledInputStream(
                        socket.getInputStream(), maxDownload);
            }
        }
    }