Gregary Boyles
Newbie
How do I implement this function without this pain in the butt exception handling getting in my way?
There is no way of creating an empty InetAddress object because new InetAddress() won't compile.
For this reason I have created my own IP address class that works the way I want it to work....except for this conversion function.
Is there any way to simply turn off exception handling in this function?
There is no way of creating an empty InetAddress object because new InetAddress() won't compile.
For this reason I have created my own IP address class that works the way I want it to work....except for this conversion function.
Is there any way to simply turn off exception handling in this function?
Code:
public InetAddress getIA()
{
InetAddress ia;
try
{
ia = InetAddress.getByAddress(m_arrayIP);
}
catch(IOException ioe)
{
System.out.println(ioe.getMessage());
return;
}
return ia;
}