All,

when I wrap one InputStream in another in Java:

  InputStream is = new BufferedInputStream( new FileInputStream (...) );

I know that is.close() will close the underlying FileInputStream.

When a LogTarget wraps another:

  LogTarget lt = new AsyncLogTarget( new MyLogTarget( ... ));

Closing the wrapping log target does not close the underlying target.

Is this:

 a. right

 b. wrong

?

If (b) do we: Add a method close() to the LogTarget interface?

/LS


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to