Java

digitization, transformation, binary

Class SocketException in Java

Class SocketException in Java SocketException is thrown from the application to indicate that some exception happened while attempting to use a socket. A SocketException is thrown when an error occurs while a socket is being used. As of now, there are some more specific subclasses of SocketException, namely BindException, ConnectException, and NoRouteToHostException. The class SocketException is …

Class SocketException in Java Read More »

digitization, transformation, binary

Class ProtocolException in Java

Class ProtocolException in Java ProtocolException is common exception classes in java and is thrown from an application to indicate that there is an error in the underlying protocol like TCP Error.It is thrown from the Socket class. A ProtocolException is thrown to indicate that there has been an error in an underlying protocol, such as …

Class ProtocolException in Java Read More »

digitization, transformation, binary

Class NoRouteToHostException in Java

Class NoRouteToHostException in Java A NoRouteToHostException is thrown when a socket connection cannot be established with a remote host. This type of exception usually indicates that a firewall is blocking access to the host, or that an intermediate router is down. An application can throw this -NoRouteToHostException exception to indicate a socket could not be …

Class NoRouteToHostException in Java Read More »

digitization, transformation, binary

Abstract Class DatagramSocketImpl in Java

Abstract Class DatagramSocketImpl in Java DatagramSocketImpl is an abstract class that defines the methods necessary to implement communication through datagram and multicast sockets. System programmers may create subclasses of this class when they need to implement datagram or multicast sockets in a nonstandard network environment, such as behind a firewall or on a network that …

Abstract Class DatagramSocketImpl in Java Read More »

digitization, transformation, binary

Abstract Interface ContentHandlerFactory in Java

Abstract Interface ContentHandlerFactory in Java ContentHandlerFactory interface defines a method that creates and returns an appropriate ContentHandler object for a specified MIME type. A system-wide ContentHandlerFactory interface may be specified by using the URLConnection. setContentHandlerFactory() method. Normal applications never need to use or implement this interface. The URLStreamHandler class uses a ContentHandlerFactory to create ContentHandler …

Abstract Interface ContentHandlerFactory in Java Read More »