public enum BytesUtil extends Enum<BytesUtil>
Modifier and Type | Method and Description |
---|---|
static <ACS extends Appendable & CharSequence> |
append(ACS sb,
String str) |
static void |
append(Appendable sb,
double value) |
static void |
append(Appendable sb,
long value) |
static void |
append(RandomDataOutput out,
long offset,
long num,
int digits)
The length of the number must be fixed otherwise short numbers will not overwrite longer numbers
|
static <S extends ByteStringAppender> |
append(S out,
long num) |
static void |
append(StreamingDataOutput out,
double d) |
static void |
append8bit(StreamingDataOutput bytes,
CharSequence str,
int offset,
int length) |
static void |
appendDateMillis(ByteStringAppender b,
long timeInMS) |
static void |
appendTimeMillis(ByteStringAppender b,
long timeInMS) |
static void |
appendUTF(StreamingDataOutput bytes,
CharSequence str,
int offset,
int length) |
static void |
appendUTF(StreamingDataOutput bytes,
int c) |
static Bytes |
asBytes(RandomDataOutput bytes,
long position,
long limit) |
static int |
asInt(String str) |
static Object |
asSize(long size) |
static boolean |
bytesEqual(RandomDataInput a,
long aOffset,
RandomDataInput b,
long bOffset,
long len) |
static boolean |
contentEqual(BytesStore a,
BytesStore b) |
static boolean |
equalBytesAny(BytesStore b1,
BytesStore b2,
long remaining) |
static boolean |
equals(Object o1,
Object o2) |
static int |
getAndAddInt(BytesStore in,
long offset,
int adding) |
static long |
getAndAddLong(BytesStore in,
long offset,
long adding) |
static void |
parse8bit(StreamingDataInput bytes,
Bytes builder,
StopCharsTester tester) |
static void |
parse8bit(StreamingDataInput bytes,
StringBuilder builder,
StopCharsTester tester) |
static double |
parseDouble(StreamingDataInput in) |
static long |
parseLong(RandomDataInput in,
long offset) |
static long |
parseLong(StreamingDataInput in) |
static void |
parseUTF(StreamingDataInput bytes,
Appendable appendable,
int utflen) |
static void |
parseUTF(StreamingDataInput bytes,
Appendable builder,
StopCharsTester tester) |
static void |
parseUTF(StreamingDataInput bytes,
Appendable builder,
StopCharTester tester) |
static String |
parseUTF(StreamingDataInput bytes,
StopCharTester tester) |
static long |
readStopBit(StreamingDataInput in) |
static String |
readUTFΔ(StreamingDataInput in) |
static void |
setCharAt(Appendable sb,
int index,
char ch) |
static void |
setLength(Appendable sb,
int newLength) |
static boolean |
skipTo(net.openhft.chronicle.bytes.ByteStringParser parser,
StopCharTester tester) |
static int |
stopBitLength(long n) |
static String |
to8bitString(BytesStore bytes) |
static String |
toDebugString(RandomDataInput bytes,
long maxLength) |
static String |
toHexString(Bytes bytes,
long offset,
long len)
display the hex data of
Bytes from the position() to the limit() |
static String |
toString(RandomDataInput bytes) |
static BytesUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BytesUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeStopBit(StreamingDataOutput out,
long n) |
static void |
writeUTF(StreamingDataOutput bytes,
CharSequence str) |
public static BytesUtil[] values()
for (BytesUtil c : BytesUtil.values()) System.out.println(c);
public static BytesUtil valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean contentEqual(BytesStore a, BytesStore b)
public static boolean bytesEqual(RandomDataInput a, long aOffset, RandomDataInput b, long bOffset, long len)
public static void parseUTF(StreamingDataInput bytes, Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void writeUTF(StreamingDataOutput bytes, CharSequence str)
@NotNull public static Bytes asBytes(RandomDataOutput bytes, long position, long limit)
public static void appendUTF(StreamingDataOutput bytes, @NotNull CharSequence str, int offset, int length)
public static void append8bit(StreamingDataOutput bytes, @NotNull CharSequence str, int offset, int length)
public static void appendUTF(StreamingDataOutput bytes, int c)
public static void writeStopBit(StreamingDataOutput out, long n)
public static int stopBitLength(long n)
public static String toDebugString(RandomDataInput bytes, long maxLength)
public static Object asSize(long size)
public static String to8bitString(BytesStore bytes)
public static String toString(RandomDataInput bytes)
public static long readStopBit(StreamingDataInput in)
public static <S extends ByteStringAppender> void append(S out, long num)
public static void append(RandomDataOutput out, long offset, long num, int digits)
public static void append(StreamingDataOutput out, double d)
public static String readUTFΔ(StreamingDataInput in)
@NotNull public static String parseUTF(StreamingDataInput bytes, @NotNull StopCharTester tester)
public static void parseUTF(StreamingDataInput bytes, @NotNull Appendable builder, @NotNull StopCharTester tester)
public static void parseUTF(StreamingDataInput bytes, @NotNull Appendable builder, @NotNull StopCharsTester tester)
public static void parse8bit(StreamingDataInput bytes, @NotNull StringBuilder builder, @NotNull StopCharsTester tester)
public static void parse8bit(StreamingDataInput bytes, @NotNull Bytes builder, @NotNull StopCharsTester tester)
public static double parseDouble(StreamingDataInput in)
public static long parseLong(StreamingDataInput in)
public static long parseLong(RandomDataInput in, long offset)
public static boolean skipTo(net.openhft.chronicle.bytes.ByteStringParser parser, StopCharTester tester)
public static int getAndAddInt(BytesStore in, long offset, int adding)
public static long getAndAddLong(BytesStore in, long offset, long adding)
public static int asInt(@NotNull String str)
public static String toHexString(@NotNull Bytes bytes, long offset, long len)
Bytes
from the position() to the limit()bytes
- the buffer you wish to toString()public static void setCharAt(@NotNull Appendable sb, int index, char ch)
public static void setLength(@NotNull Appendable sb, int newLength)
public static void append(@NotNull Appendable sb, double value)
public static void append(@NotNull Appendable sb, long value)
public static <ACS extends Appendable & CharSequence> void append(ACS sb, String str)
public static void appendTimeMillis(ByteStringAppender b, long timeInMS)
public static boolean equalBytesAny(BytesStore b1, BytesStore b2, long remaining)
public static void appendDateMillis(ByteStringAppender b, long timeInMS)
Copyright © 2015. All rights reserved.