The Artima Developer Community
Sponsored Link

Not simultaneous

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Not simultaneous

Posted by Bill Venners on 10 Aug 1998, 11:50 AM

> In your finalizer article for JavaWorld you say:

> "Given this design, you could write to multiple log files with 1 instance of this class"

> Assuming you mean simultaneously (otherwise its true for all approches)
> this is incorrect.

> To do this you would need multiple fos, pw & logFileOpen
> variables, and to include the filename in the writeToFile &
> closeLogFile methods..
>
Yeah, you're right. I didn't mean simultaneously. I should
clarify that in the text. I meant you could write to multiple
files one after the other. You can only have on open at a time,
though you could go back and forth, revisiting ones you'd
previously written to.

bv



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us