Package org.stellar.sdk.xdr
Class PeerAddress.PeerAddressIp
java.lang.Object
org.stellar.sdk.xdr.PeerAddress.PeerAddressIp
- Enclosing class:
PeerAddress
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PeerAddress.PeerAddressIpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) static voidencode(XdrDataOutputStream stream, PeerAddress.PeerAddressIp encodedPeerAddressIp) booleanstatic PeerAddress.PeerAddressIpfromXdrBase64(String xdr) static PeerAddress.PeerAddressIpfromXdrByteArray(byte[] xdr) byte[]getIpv4()byte[]getIpv6()inthashCode()voidsetDiscriminant(IPAddrType value) voidsetIpv4(byte[] value) voidsetIpv6(byte[] value) byte[]
-
Constructor Details
-
PeerAddressIp
public PeerAddressIp()
-
-
Method Details
-
getDiscriminant
-
setDiscriminant
-
getIpv4
public byte[] getIpv4() -
setIpv4
public void setIpv4(byte[] value) -
getIpv6
public byte[] getIpv6() -
setIpv6
public void setIpv6(byte[] value) -
encode
public static void encode(XdrDataOutputStream stream, PeerAddress.PeerAddressIp encodedPeerAddressIp) throws IOException - Throws:
IOException
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-