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(long offsetInRDO,
RandomDataOutput bytes,
CharSequence str,
int offset,
int length) |
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_SB1(Bytes bytes,
StringBuilder sb,
int utflen) |
static int |
parse8bit_SB1(long offset,
NativeBytesStore nbs,
StringBuilder sb,
int utflen) |
static void |
parse8bit(long offset,
RandomDataInput bytesStore,
Appendable appendable,
int utflen) |
static void |
parse8bit(StreamingDataInput bytes,
Appendable appendable,
int utflen) |
static void |
parse8bit(StreamingDataInput bytes,
Bytes builder,
StopCharsTester tester) |
static void |
parse8bit(StreamingDataInput bytes,
Bytes builder,
StopCharTester tester) |
static void |
parse8bit(StreamingDataInput bytes,
StringBuilder builder,
StopCharsTester tester) |
static void |
parse8bit(StreamingDataInput bytes,
StringBuilder builder,
StopCharTester tester) |
static void |
parse8bit1(long offset,
RandomDataInput bytes,
Appendable appendable,
int utflen) |
static void |
parse8bit1(StreamingDataInput bytes,
Appendable appendable,
int utflen) |
static double |
parseDouble(StreamingDataInput in) |
static long |
parseLong(RandomDataInput in,
long offset) |
static long |
parseLong(StreamingDataInput in) |
static void |
parseUTF_SB1(Bytes bytes,
StringBuilder sb,
int utflen) |
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 void |
parseUTF1(StreamingDataInput bytes,
Appendable appendable,
int utflen) |
static String |
read8bit(StreamingDataInput in) |
static <E extends Enum<E>,S extends StreamingDataInput<S>> |
readEnum(StreamingDataInput input,
Class<E> eClass) |
static long |
readStopBit(StreamingDataInput in) |
static double |
readStopBitDouble(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) |
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 |
write(BytesStore bytes,
long offset,
long length,
StreamingDataOutput sdo) |
static void |
write8bit(StreamingDataOutput bytes,
BytesStore str) |
static void |
write8bit(StreamingDataOutput bytes,
CharSequence str) |
static void |
writeStopBit(StreamingDataOutput out,
double d) |
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(@Nullable BytesStore a, @Nullable BytesStore b)
public static boolean bytesEqual(@NotNull RandomDataInput a, long aOffset, RandomDataInput b, long bOffset, long len)
public static void parseUTF(@NotNull StreamingDataInput bytes, Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parse8bit(@NotNull StreamingDataInput bytes, Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parse8bit(long offset, @NotNull RandomDataInput bytesStore, Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parseUTF1(@NotNull StreamingDataInput bytes, @NotNull Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parse8bit1(@NotNull StreamingDataInput bytes, @NotNull Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parse8bit1(long offset, @NotNull RandomDataInput bytes, @NotNull Appendable appendable, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parseUTF_SB1(@NotNull Bytes bytes, @NotNull StringBuilder sb, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static void parse8bit_SB1(@NotNull Bytes bytes, @NotNull StringBuilder sb, int utflen) throws net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
net.openhft.chronicle.bytes.UTFDataFormatRuntimeException
public static int parse8bit_SB1(long offset, NativeBytesStore nbs, @NotNull StringBuilder sb, int utflen)
public static void writeUTF(@NotNull StreamingDataOutput bytes, @Nullable CharSequence str)
public static void write8bit(@NotNull StreamingDataOutput bytes, @Nullable CharSequence str)
public static void write8bit(@NotNull StreamingDataOutput bytes, @NotNull BytesStore str)
@NotNull public static Bytes asBytes(@NotNull RandomDataOutput bytes, long position, long limit)
public static void appendUTF(@NotNull 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 append8bit(long offsetInRDO, RandomDataOutput bytes, @NotNull CharSequence str, int offset, int length)
public static void appendUTF(@NotNull StreamingDataOutput bytes, int c)
public static void writeStopBit(@NotNull StreamingDataOutput out, long n)
public static void writeStopBit(@NotNull StreamingDataOutput out, double d)
public static double readStopBitDouble(@NotNull StreamingDataInput in)
public static int stopBitLength(long n)
public static String toDebugString(@NotNull RandomDataInput bytes, long maxLength)
@NotNull public static Object asSize(long size)
public static String to8bitString(@NotNull BytesStore bytes)
public static String toString(@NotNull RandomDataInput bytes)
public static long readStopBit(@NotNull StreamingDataInput in)
public static <S extends ByteStringAppender> void append(@NotNull S out, long num)
public static void append(@NotNull RandomDataOutput out, long offset, long num, int digits)
public static void append(@NotNull StreamingDataOutput out, double d)
@Nullable public static String readUTFΔ(@NotNull StreamingDataInput in)
@Nullable public static String read8bit(@NotNull StreamingDataInput in)
@NotNull public static String parseUTF(@NotNull StreamingDataInput bytes, @NotNull StopCharTester tester)
public static void parseUTF(@NotNull StreamingDataInput bytes, @NotNull Appendable builder, @NotNull StopCharTester tester)
public static void parseUTF(@NotNull StreamingDataInput bytes, @NotNull Appendable builder, @NotNull StopCharsTester tester)
public static void parse8bit(@NotNull StreamingDataInput bytes, @NotNull StringBuilder builder, @NotNull StopCharsTester tester)
public static void parse8bit(@NotNull StreamingDataInput bytes, @NotNull Bytes builder, @NotNull StopCharsTester tester)
public static void parse8bit(@NotNull StreamingDataInput bytes, @NotNull StringBuilder builder, @NotNull StopCharTester tester)
public static void parse8bit(@NotNull StreamingDataInput bytes, @NotNull Bytes builder, @NotNull StopCharTester tester)
public static double parseDouble(@NotNull StreamingDataInput in)
public static long parseLong(@NotNull StreamingDataInput in)
public static long parseLong(@NotNull RandomDataInput in, long offset)
public static boolean skipTo(@NotNull net.openhft.chronicle.bytes.ByteStringParser parser, @NotNull StopCharTester tester)
public static int getAndAddInt(@NotNull BytesStore in, long offset, int adding)
public static long getAndAddLong(@NotNull 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(@NotNull ACS sb, String str)
public static void appendTimeMillis(@NotNull ByteStringAppender b, long timeInMS)
public static boolean equalBytesAny(@NotNull BytesStore b1, @NotNull BytesStore b2, long remaining)
public static void appendDateMillis(@NotNull ByteStringAppender b, long timeInMS)
public static <E extends Enum<E>,S extends StreamingDataInput<S>> E readEnum(StreamingDataInput input, Class<E> eClass)
public static void write(@NotNull BytesStore bytes, long offset, long length, StreamingDataOutput sdo)
Copyright © 2015. All rights reserved.