Package org.stellar.sdk.xdr
Class XdrString
java.lang.Object
org.stellar.sdk.xdr.XdrString
- All Implemented Interfaces:
XdrElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XdrStringdecode(XdrDataInputStream stream, int maxSize) voidencode(XdrDataOutputStream stream) booleanstatic XdrStringfromXdrBase64(String xdr) static XdrStringfromXdrBase64(String xdr, int maxSize) static XdrStringfromXdrByteArray(byte[] xdr) static XdrStringfromXdrByteArray(byte[] xdr, int maxSize) byte[]getBytes()inthashCode()toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
XdrString
public XdrString(byte[] bytes) -
XdrString
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toString
-
getBytes
public byte[] getBytes() -
equals
-
hashCode
public int hashCode()
-