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.

java.io.IOException

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.

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.