🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17655

System's PrintStream redirection

#17655
From: Edoardo Comar
Date: Thu, 15 Oct 1998 00:00
29 lines
1140 bytes
The deprecation warnings that are annoying me ...

How can I redirect
System.out
System.err

on text files using

System.setErr(PrintStream)
System.setOut(PrintStream)

without having to use any deprecated PrintStream constructor  ?
That is, how can I make a non-deprecated PrintWriter work with System 's
PrintStream ?

Edo.

--
ing. Edoardo Comar
<comar@tecnest.it>
Tecnest S.r.l
via Tullio, 11/13 - 33100 Udine Italy
ph. +39 432 511550
fax +39 432 508725
--------
<e.comar@go.nettuno.it> (home email)
PGP RSA key on keyservers  http://wwwkeys.pgp.net
key ID 29365395  created 1994/11/03
fingerprint = 5E 10 E1 46 22 35 84 3D  3F 57 E0 35 BE 5C 1E A7
Technical Details
Message-ID: <704spp$msi18@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,5f0694659496c3c8,start
X-Google-Attributes: gidf74b3,public
From: "Edoardo Comar" <comar@tecnest.it>
Subject: System's PrintStream redirection
Date: 1998/10/15
Message-ID: <704spp$msi18@forums.borland.com>
X-Deja-AN: 401344194
Organization: Another Netscape Collabra Server User
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language