Name
IOException
Synopsis
Signals that an
exceptional condition has occurred during input or output. This class
has several more specific subclasses. See
EOFException,
FileNotFoundException,
InterruptedIOException, and
UTFDataFormatException.
Figure 9-30. java.io.IOException
public class IOException extends Exception { // Public Constructors public IOException( ); public IOException(String s); }
Subclasses
CharConversionException,
EOFException,
FileNotFoundException,
InterruptedIOException,
ObjectStreamException,
SyncFailedException,
UnsupportedEncodingException,
UTFDataFormatException,
java.net.HttpRetryException,
java.net.MalformedURLException,
java.net.ProtocolException,
java.net.SocketException,
java.net.UnknownHostException,
java.net.UnknownServiceException,
java.nio.channels.ClosedChannelException,
java.nio.channels.FileLockInterruptionException,
java.nio.charset.CharacterCodingException,
java.util.InvalidPropertiesFormatException,
java.util.zip.ZipException,
javax.net.ssl.SSLException
Passed To
java.net.ProxySelector.connectFailed( )
Returned By
java.util.Formatter.ioException( ),
java.util.Scanner.ioException( )
Thrown By
Too many methods to list.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access