Class ZData
java.lang.Object
org.zeromq.util.ZData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(byte[] that) booleaninthashCode()voidprint(PrintStream out, String prefix) static voidprint(PrintStream out, String prefix, byte[] data, int size) static booleanString equals.booleanString equals.strhex()static Stringstrhex(byte[] data) toString()Returns a human - readable representation of datastatic StringtoString(byte[] data)
-
Field Details
-
HEX_CHAR
- See Also:
-
data
private final byte[] data
-
-
Constructor Details
-
ZData
public ZData(byte[] data)
-
-
Method Details
-
streq
String equals. Uses String compareTo for the comparison (lexigraphical)- Parameters:
str- String to compare with data- Returns:
- True if data matches given string
-
streq
String equals. Uses String compareTo for the comparison (lexigraphical)- Parameters:
data- the binary data to comparestr- String to compare with data- Returns:
- True if data matches given string
-
equals
public boolean equals(byte[] that) -
equals
-
hashCode
-
toString
-
toString
-
strhex
- Returns:
- data as a printable hex string
-
strhex
-
print
-
print
-