Author | Topic: Marcus's tutorial on I/O |
Vivek Shrivastava ranch hand |
posted July 19, 2000 06:53 PM
Hi , In the marcus tutorial of java io he asked a question at last Which of the following statements are true?
In the explanation of answer he said : quote: I think he wants to say InputStreams can only be chained to other InputStreams and ?... please correct me if I am wrong. Please help me. vivek
|
Vivek Shrivastava ranch hand |
posted July 19, 2000 11:22 PM
Please someone come forward. i am looking forward to hear from u. thanks in advance. vivek
|
maha anna bartender |
posted July 19, 2000 11:42 PM
vivek, Yes. You are correct. I think Marcus made a typo here. There is ONLY ONE exception to the above statement as you may know it already. The exception IO class is PipedInputStream which can be connected to a PipedOutputStream which again is another OutputStream and the same info holds true for PipedOutputStream which again takes a PipedInputStream as argument in its constructor. Since except this one class ALL other IO InputStream class types can be connected to only other SAME/Lowlevel InputStream types we can almost say the above (to be corrected by Marcus) statement by Marcus as a generalized statement. From Java API [This message has been edited by maha anna (edited July 19, 2000).]
|
Marcus Green ranch hand |
posted July 20, 2000 12:52 AM
Yes that was a typo, I have fixed it now. Thanks for bringing that up especially the bit about piped inputstream. Marcus
|
Vivek Shrivastava ranch hand |
posted July 20, 2000 10:33 AM
Thanks maha and marcus. regards
|
| | |