i had commented out //buffer.append((char) i); in error. the corrected
version is below.
> I've changed FTPClient to use a BufferedInputStream, it now reads at
a
> more realistic speed. The altered file is pasted at the bottom of
this
> message.
>
> The changes were made in the run() method, in particular....
>
> try {
> InputStream in = s.getInputStream();
> BufferedInputStream dataIn = new BufferedInputStream
> (in);
> int bufferSize = 4096;
> byte[] inputBuffer = new byte[bufferSize];
> int i = 0;
> //System.out.println("About to read data.");
> while ((i = dataIn.read(inputBuffer, 0, bufferSize)) !
> = -1) {
> buffer.append((char) i);
> }
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]