Hallo!

On Sun, 31 Dec 2000, noisebrain wrote:

> (forgive me since this is mostly off topic, though the answer
> might possibly be specific to the operating system.)
> 
> I want to write a little java app to copy a url and its relative links.
> The url itself is a text html file; some of the links may be binary
> files such as .jpg, .ps.gz, etc.
> 
> My question: can you copy a binary file such as a .jpg using a *Reader,
> rather than a Stream?  Each byte will then be represented with 
> a 16bit char, but will writing with a corresponding Writer preserve the
> data?
> 
> Generally the top-level url should be read using a Reader, 
> but I believe it will be difficult to tell if the links are binary
> or html without reading them (and even then... some html does not
> start with the <html> tag.  Thus, the easy/general way to do it would
> be to just open every file with a Reader, thus my question.

The Writer shouldn't change something, as far as I remember, what the
Reader read, but I am not sure what will happen if You come across a file
that is *not* 16 bit-aligned.

-- 
Bye...
        Andreas Kopecki                                   Benutzerberater
                                                                    Emacs
                   [EMAIL PROTECTED]               
             http://www.uni-stuttgart.de/WWWraum/goodies.html
-------------------------------------------------------------------------
 If it's really a rush job, run in and interrupt me every 10 minutes to
  inquire how it's going. That helps. Or even better, hover behind me,
                     advising me at every keystroke.
--                                                                       


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to