Package org.opennms.netmgt.snmp
Class InetAddrXmlAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.net.InetAddress>
-
- org.opennms.netmgt.snmp.InetAddrXmlAdapter
-
public class InetAddrXmlAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.net.InetAddress>
InetAddresssXmlAdapter- Version:
- $Id: $
- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description InetAddrXmlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
marshal(java.net.InetAddress inetAddr)
java.net.InetAddress
unmarshal(java.lang.String ipAddr)
-
-
-
Method Detail
-
marshal
public java.lang.String marshal(java.net.InetAddress inetAddr) throws java.lang.Exception
- Specified by:
marshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.net.InetAddress>
- Throws:
java.lang.Exception
-
unmarshal
public java.net.InetAddress unmarshal(java.lang.String ipAddr) throws java.lang.Exception
- Specified by:
unmarshal
in classjavax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,java.net.InetAddress>
- Throws:
java.lang.Exception
-
-