Package org.zeromq.util
Class ZData
java.lang.Object
org.zeromq.util.ZData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(byte[] that) boolean
int
hashCode()
void
print
(PrintStream out, String prefix) static void
print
(PrintStream out, String prefix, byte[] data, int size) static boolean
String equals.boolean
String equals.strhex()
static String
strhex
(byte[] data) toString()
Returns a human - readable representation of datastatic String
toString
(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
public int hashCode() -
toString
Returns a human - readable representation of data -
toString
-
strhex
- Returns:
- data as a printable hex string
-
strhex
-
print
-
print
-