重新分配标准输出流。 [英] Reassign standard Output Stream.

查看:84
本文介绍了重新分配标准输出流。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我遇到了一个问题,是否可以更改标准输出流?

然后我立即去分配System.out变量。

Today I came across a thing, is it possible to change the Standard Output Stream?
Then I immediately went for assign the System.out variable.

展开 | 选择 | Wrap | 行号

推荐答案


今天我遇到了一件事,是否有可能更改标准输出流?

然后我立即去分配System.out变量。

Today I came across a thing, is it possible to change the Standard Output Stream?
Then I immediately went for assign the System.out variable.

展开 | 选择 | Wrap | 行号



Java根本不会改变System.out.

是什么让你认为它会改变它?
Java does not change the System.out at all.
What makes you think that it changes it?



Duh,那个System类充满了原生方法和东西;它甚至使用了一个

sun.misc.SharedSecrets类来实现多种用途;我不相信那个班级

一个单位;-)


亲切的问候,


Jos

Duh, that System class is full of native methods and stuff; it even uses a
sun.misc.SharedSecrets class for several purposes; I don''t trust that class
one single bit ;-)

kind regards,

Jos



Duh,那个System类充满了原生方法和东西;它甚至使用了一个

sun.misc.SharedSecrets类来实现多种用途;我不相信那个班级

一个单位;-)


亲切的问候,


Jos
Duh, that System class is full of native methods and stuff; it even uses a
sun.misc.SharedSecrets class for several purposes; I don''t trust that class
one single bit ;-)

kind regards,

Jos



版本6?我的1.5.0_03没有使用这样的秘密。

Version 6? My 1.5.0_03 uses no such secrets.
I


这篇关于重新分配标准输出流。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆