public interface Connection
closemethod is defined. No open method is defined here because opening is always done using the
|Modifier and Type||Method and Description|
Close the connection.
void close() throws IOException
When a connection has been closed, access to any of its methods
that involve an I/O operation will cause an
to be thrown.
Closing an already closed connection has no effect. Streams
derived from the connection may be open when method is called.
Any open streams will cause the connection to be held open
until they themselves are closed. In this latter case access
to the open streams is permitted, but access to the connection
IOException- If an I/O error occurs
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.