On Friday 06 July 2007 02:02:21 Andreas Sterbenz wrote:
> Hi,
>
> elsewhere it came up that the java.io.Closeable interface is
> implemented by InputStream, OutputStream, Reader, Writer,
> SocketChannel, etc. but not by classes such as Socket, ServerSocket,
> ZipFile, etc.
>
> Is that intentional or a bug?
>
> Andreas.


A bug means that the software does not work as intended.

Socket, ServerSocket and ZipFile all have a close() method which closes 
the respective streams so what's the problem?

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to