Re: Streams question
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 09:38:24 GMT
On Fri, 28 Oct 2005 23:35:27 -0600, Chris Smith <cdsmith@xxxxxxx>
wrote, quoted or indirectly quoted someone who said :
>Learning by testing is best done when you can write tests that clearly
>select between possible results, and where you can trust the results to
>be reliable.
I was thinking there would be some sort of isOpen method to satisfy
the question simply, but there is not.
To do the test you would have to fool around closing one or other or
both streams and doing i/o on one or other or both streams and seeing
what sorts of failures you got about doing i/o on closed streams.
I don't recall ever reading any documentation on the behaviour. I
figured it out myself a long time ago to my satisfaction by looking at
the source code for various close methods.
..
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- Streams question
- From: Brian Fox
- Re: Streams question
- From: Chris Smith
- Streams question
- Prev by Date: Re: Desing Question re Multiple Constructors
- Next by Date: Re: How to hide information from address line of JSP?
- Previous by thread: Re: Streams question
- Next by thread: Re: confused
- Index(es):
Relevant Pages
|