Issue 1724: OutputStream semantics question (java-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: When an InputStream is created by an OutputStream, is it permitted to continue to write anything more to the OutputStream? If this is not permitted, we should presumably lock out the OutputStream and throw an exception if another write_X is attempted after the create_input_stream. If this is permitted, we need to say whether or not the things written to the OutputStream after the InputStream is created show up in the InputStream or not. Resolution: closed issue Revised Text: Actions taken: July 22, 1998: received issue July 30, 1998: closed issue Discussion: End of Annotations:===== Return-Path: Date: Wed, 22 Jul 1998 20:23:45 +0100 From: Simon Nash Reply-To: nash@hursley.ibm.com Organization: IBM To: java-rtf@omg.org Cc: issues@omg.org Subject: OutputStream semantics question When an InputStream is created by an OutputStream, is it permitted to continue to write anything more to the OutputStream? If this is not permitted, we should presumably lock out the OutputStream and throw an exception if another write_X is attempted after the create_input_stream. If this is permitted, we need to say whether or not the things written to the OutputStream after the InputStream is created show up in the InputStream or not. Simon -- Simon C Nash, IBM Java Technology Centre, Hursley, UK MailPoint 146, x245156 Tel. 01962 815156 or +44-1962-815156 Internet: nash@hursley.ibm.com Notes mail: Simon Nash@ibmgb Return-Path: Date: Wed, 22 Jul 1998 13:23:45 -0700 (PDT) From: Jeff Nisewanger Reply-To: Jeff Nisewanger Subject: Re: OutputStream semantics question To: java-rtf@omg.org Content-MD5: 8O76BhQ4gfW3obe7bSq0RA== > When an InputStream is created by an OutputStream, is it permitted to > continue to write anything more to the OutputStream? > > If this is not permitted, we should presumably lock out the OutputStream > and throw an exception if another write_X is attempted after the > create_input_stream. > > If this is permitted, we need to say whether or not the things written > to the OutputStream after the InputStream is created show up in the > InputStream or not. It was my understanding that creating the input stream takes a snapshot of the current output stream contents. Anything written to the output stream after that is not visible to the input stream. Jeff Return-Path: Date: Thu, 23 Jul 1998 09:34:48 +0100 From: Simon Nash Reply-To: nash@hursley.ibm.com Organization: IBM To: Jeff Nisewanger Cc: java-rtf@omg.org Subject: Re: OutputStream semantics question References: Jeff, Sounds reasonable to me. If we all agree with this interpretation, this needs to be stated somewhere in the spec. Simon Jeff Nisewanger wrote: > > > When an InputStream is created by an OutputStream, is it permitted > to > > continue to write anything more to the OutputStream? > > > > If this is not permitted, we should presumably lock out the > OutputStream > > and throw an exception if another write_X is attempted after the > > create_input_stream. > > > > If this is permitted, we need to say whether or not the things > written > > to the OutputStream after the InputStream is created show up in > the > > InputStream or not. > > It was my understanding that creating the input stream takes a > snapshot of the > current output stream contents. Anything written to the output > stream after > that is not visible to the input stream. > > Jeff -- Simon C Nash, IBM Java Technology Centre, Hursley, UK MailPoint 146, x245156 Tel. 01962 815156 or +44-1962-815156 Internet: nash@hursley.ibm.com Notes mail: Simon Nash@ibmgb Return-Path: Sender: "George Scott" Date: Mon, 27 Jul 1998 17:44:17 -0700 From: "George M. Scott" Organization: Inprise Corporation To: java-rtf@omg.org Subject: Re: OutputStream semantics question References: <35B6F5A8.ADAAB198@mailserver.hursley.ibm.com> Simon Nash wrote: > > Jeff, > Sounds reasonable to me. If we all agree with this interpretation, > this needs to be stated somewhere in the spec. > > Simon Inprise also agrees with the stated intepertation below. It should be clarified in the spec. George > Jeff Nisewanger wrote: > > > > > > It was my understanding that creating the input stream takes a > snapshot of the > > current output stream contents. Anything written to the output > stream after > > that is not visible to the input stream.