Package org.opennms.core.network
Class InetAddressXmlAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,InetAddress>
-
- org.opennms.core.network.InetAddressXmlAdapter
-
public class InetAddressXmlAdapter extends XmlAdapter<String,InetAddress>
-
-
Constructor Summary
Constructors Constructor Description InetAddressXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
marshal(InetAddress inetAddr)
InetAddress
unmarshal(String ipAddr)
-
-
-
Method Detail
-
marshal
public String marshal(InetAddress inetAddr) throws Exception
- Specified by:
marshal
in classXmlAdapter<String,InetAddress>
- Throws:
Exception
-
unmarshal
public InetAddress unmarshal(String ipAddr) throws Exception
- Specified by:
unmarshal
in classXmlAdapter<String,InetAddress>
- Throws:
Exception
-
-