| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
asString()
Obtains a string representation of the entire content present in the bytes.
|
@NotNull String |
asString(boolean abbrev)
Obtains a string representation of the content from the current read position.
|
@NotNull String |
asString(long position,
long length)
Dumps a specific region of the wire content, starting at
position
for length bytes, as a string. |
@NotNull String |
asString(long position,
long length,
boolean abbrev)
Dumps a specific region of the wire content, starting at
position
for length bytes, as a string. |
void |
dumpAsHexadecimal(@NotNull StringBuilder sb,
int len,
long readPosition,
int sblen)
Dumps the content of the byte buffer as a hexadecimal representation into the provided StringBuilder.
|
boolean |
dumpOne(@NotNull StringBuilder sb,
@Nullable net.openhft.chronicle.bytes.Bytes<?> buffer)
Reads and dumps a single size-prefixed message from the wire into the
supplied
sb. |
boolean |
dumpOne(@NotNull StringBuilder sb,
@Nullable net.openhft.chronicle.bytes.Bytes<?> buffer,
boolean abbrev)
Reads and dumps a single size-prefixed message from the wire into the
supplied
sb. |
static @NotNull WireDumper |
of(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
|
static @NotNull WireDumper |
of(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean align)
|
static @NotNull WireDumper |
of(@NotNull WireIn wireIn)
Creates a
WireDumper for the given WireIn instance. |
@NotNull public static @NotNull WireDumper of(@NotNull @NotNull WireIn wireIn)
WireDumper for the given WireIn instance.wireIn - The WireIn instance to be dumped@NotNull public static @NotNull WireDumper of(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
WireDumper for the given Bytes instance,
implicitly treating it as a BinaryWire. This method uses
the default padding alignment.bytes - The Bytes object containing the raw data to be dumped@NotNull public static @NotNull WireDumper of(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, boolean align)
WireDumper for the given Bytes instance,
implicitly treating it as a BinaryWire. The align
parameter controls whether padding is assumed (see
AbstractWire.DEFAULT_USE_PADDING).bytes - The Bytes object containing the raw data to be dumpedalign - Whether to use padding alignment@NotNull public @NotNull String asString()
@NotNull public @NotNull String asString(boolean abbrev)
abbrev - Boolean value indicating whether to use abbreviated format@NotNull public @NotNull String asString(long position, long length)
position
for length bytes, as a string.position - The starting byte position in the wire's underlying bufferlength - The number of bytes to dump from the starting position@NotNull public @NotNull String asString(long position, long length, boolean abbrev)
position
for length bytes, as a string.position - The starting byte position in the wire's underlying bufferlength - The number of bytes to dump from the starting positionabbrev - If true, long content within individual messages might be abbreviatedpublic boolean dumpOne(@NotNull
@NotNull StringBuilder sb,
@Nullable
@Nullable net.openhft.chronicle.bytes.Bytes<?> buffer)
sb. This method uses the default abbreviated format.sb - The StringBuilder to append the dumped message tobuffer - A temporary Bytes buffer used if the source message is binarytrue if the end of the wire was reached, false otherwisepublic boolean dumpOne(@NotNull
@NotNull StringBuilder sb,
@Nullable
@Nullable net.openhft.chronicle.bytes.Bytes<?> buffer,
boolean abbrev)
sb.sb - The StringBuilder to append the dumped message tobuffer - A temporary Bytes buffer used if the source message is binary; may be nullabbrev - If true, abbreviates contenttrue if the end of the wire was reached, false otherwisepublic void dumpAsHexadecimal(@NotNull
@NotNull StringBuilder sb,
int len,
long readPosition,
int sblen)
sb - The StringBuilder to append the hexadecimal dump tolen - The number of bytes to read from bytes and dumpreadPosition - The starting position in bytes to read fromsblen - The length to which sb should be reset before appending the hex dumpCopyright © 2026 Chronicle Software Ltd. All rights reserved.