W3cubDocs

/OpenJDK 21

Class ClosedChannelException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AsynchronousCloseException
public class ClosedChannelException extends IOException
Checked exception thrown when an attempt is made to invoke or complete an I/O operation upon channel that is closed, or at least closed to that operation. That this exception is thrown does not necessarily imply that the channel is completely closed. A socket channel whose write half has been shut down, for example, may still be open for reading.
Since:
1.4
See Also:

Constructor Summary

Constructor Description
ClosedChannelException()
Constructs an instance of this class.

Method Summary

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Details

ClosedChannelException

public ClosedChannelException()
Constructs an instance of this class.

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/nio/channels/ClosedChannelException.html