Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: How do I scp extremely large files Date: Tue, 07 Feb 2012 22:50:46 +0100 Lines: 31 Message-ID: <9pdklmF1pmU2@mid.individual.net> References: <7f3940d0-cc97-466d-87bf-7a420e53df5c@gi10g2000vbb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 4NRTLHgNOFOJZEAxH7x2OQ+WxDCO+/enhwXfvSy7S4gXWWHzM= Cancel-Lock: sha1:s4Z0dybxgDZpEmsY91pApit6djQ= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11830 On 02/06/2012 09:54 PM, Mike wrote: > On Feb 6, 2:54 am, Robert Klemme wrote: >> I am not sure I understand your question properly. Any Java library >> which implements sftp or scp's protocols will have a means to copy >> remote files or at least open remote files and obtain an InputStream >> or Channel, from which you can read in chunks and store data locally. >> >> If you need to do the transfer on a regularly basis maybe rsync is >> better than cooking your own version of it. > Thanks for the response Robert. rsync is not an option. Why? > I cannot use > any outside software, open-source or otherwise. Why aren't you able to use "outside software"? Or did you mean you are not allowed to? > I believe you stated > just what I need to do... obtain a channel to read chunks from and > store locally. I'm just a little fuzzy on the details. Haven't done > much with channels or inputStreams for that matter. IO is pretty basic - in any language. I am surprised you haven't been exposed to it yet. For the details please follow Lew's advice / links. Kind regards robert