Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] disabling echo on System.in and Good Java programming resources
- From: jsight@xxxxxxxx (Jesse D. Sightler)
- Subject: [Advanced-java] disabling echo on System.in and Good Java programming resources
- Date: Wed, 23 Jan 2002 10:09:53 -0500
Hi Tim, You can use the methods |static void| |* setErr <http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html#setErr%28java.io.PrintStream%29>*( PrintStream <http://java.sun.com/j2se/1.3/docs/api/java/io/PrintStream.html> err)| Reassigns the "standard" error output stream. |static void| |* setIn <http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html#setIn%28java.io.InputStream%29>*( InputStream <http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html> in)| Reassigns the "standard" input stream. |static void| |* setOut <http://java.sun.com/j2se/1.3/docs/api/java/lang/System.html#setOut%28java.io.PrintStream%29>*( PrintStream <http://java.sun.com/j2se/1.3/docs/api/java/io/PrintStream.html> out)| Reassigns the "standard" output stream. to redirect stdout, stderr, and stdin. Although I don't really think that you can disable echo with the standard console. The only thing that I can think of is to switch to use a custom console in AWT/Swing. --- Jess Tim Roberts wrote: >Hi All, > >Is there a way to disable the console echo on the System.in stream? I'm sure >this must have been asked before, and it doesn't sound very advanced, but I >haven't been able to find an answer from my usual sources. What would people >recommend as good sources of Java programming information of an intermediate >to advanced level? > >Cheers, > >Tim. > >_______________________________________________ >Advanced-java mailing list >Advanced-java@xxxxxxxxxxxxxxxxxxxxxx >http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java > >
- References:
- Prev by Date: [Advanced-java] disabling echo on System.in and Good Java programming resources
- Next by Date: [Advanced-java] Designing an Exception Heirarchy
- Previous by thread: [Advanced-java] disabling echo on System.in and Good Java programming resources
- Next by thread: [Advanced-java] disabling echo on System.in and Good Java programming resources
- Index(es):