Hello,

(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.

Any other approaches?

Thanks.



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

Reply via email to