impl = factory.createDatagramSocketImpl();
else
{
try
{
impl = new PlainDatagramSocketImpl();
}
catch (IOException ioe)
{
SocketException se = new SocketException();
se.initCause(ioe);
throw se;
}
}
}
else
try
{
impl =
(DatagramSocketImpl) Class.forName("java.net." + propVal
+ "DatagramSocketImpl")
.newInstance();
}
catch (Exception e)
{
System.err.println("Could not instantiate class: java.net."
+ propVal + "DatagramSocketImpl");
try
{
impl = new PlainDatagramSocketImpl();
}
catch (IOException ioe)
{
SocketException se = new SocketException();
se.initCause(ioe);