How to know where System.out points to

A

Ahmed Moustafa

Is it possible to know where System.out points to e.g. a file name or
stdout?

Thanks in advance,
 
L

Lothar Kimmeringer

Is it possible to know where System.out points to e.g. a file name or
stdout?

As long as you don't set it for yourself, no. You only see
the PrintStream. What underlying streams there are, you aren't
able to find out.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top