Package deltix.qsrv.hf.pub.codec
Class AlphanumericCodec
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.AlphanumericCodec
-
public final class AlphanumericCodec extends java.lang.Object
Implements encoding and decoding of strings composed from characters of the limited set.The character set includes all Latin capital letters [A-Z], digits [0-9] as well as the following special characters !"#$%&'()*+,-./:;<=>?@[\]^_. Its range is [0x20, 0x5F].
-
-
Constructor Summary
Constructors Constructor Description AlphanumericCodec(int n)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.CharSequence
decodeFromLong(long v)
long
encodeToLong(java.lang.CharSequence s)
static int
getNumSizeBits(int n)
java.lang.CharSequence
readCharSequence(deltix.util.memory.MemoryDataInput in)
int
readInt(deltix.util.memory.MemoryDataInput in)
long
readLong(deltix.util.memory.MemoryDataInput in)
void
skip(deltix.util.memory.MemoryDataInput in)
static void
skip(deltix.util.memory.MemoryDataInput in, int n)
static void
skip(deltix.util.memory.MemoryDataInput in, int numSizeBits, int n)
static java.lang.StringBuilder
staticRead(deltix.util.memory.MemoryDataInput in, int numSizeBits, int n, java.lang.StringBuilder sb)
static void
staticWrite(java.lang.CharSequence s, int numSizeBits, int n, deltix.util.memory.MemoryDataOutput out)
static void
validate(int n, java.lang.CharSequence value)
void
writeCharSequence(java.lang.CharSequence v, deltix.util.memory.MemoryDataOutput out)
void
writeInt(int v, deltix.util.memory.MemoryDataOutput out)
void
writeLong(long v, deltix.util.memory.MemoryDataOutput out)
static void
writeNull(deltix.util.memory.MemoryDataOutput out, int n)
static void
writeNull(deltix.util.memory.MemoryDataOutput out, int numSizeBits, int n)
void
writeObject(java.lang.Object v, deltix.util.memory.MemoryDataOutput out)
-
-
-
Method Detail
-
getNumSizeBits
public static int getNumSizeBits(int n)
-
readCharSequence
public final java.lang.CharSequence readCharSequence(deltix.util.memory.MemoryDataInput in)
-
readInt
public final int readInt(deltix.util.memory.MemoryDataInput in)
-
readLong
public final long readLong(deltix.util.memory.MemoryDataInput in)
-
writeCharSequence
public final void writeCharSequence(java.lang.CharSequence v, deltix.util.memory.MemoryDataOutput out)
-
writeInt
public final void writeInt(int v, deltix.util.memory.MemoryDataOutput out)
-
writeLong
public final void writeLong(long v, deltix.util.memory.MemoryDataOutput out)
-
encodeToLong
public long encodeToLong(java.lang.CharSequence s)
-
decodeFromLong
public java.lang.CharSequence decodeFromLong(long v)
-
skip
public static void skip(deltix.util.memory.MemoryDataInput in, int n)
-
skip
public static void skip(deltix.util.memory.MemoryDataInput in, int numSizeBits, int n)
-
staticWrite
public static void staticWrite(java.lang.CharSequence s, int numSizeBits, int n, deltix.util.memory.MemoryDataOutput out)
-
staticRead
public static java.lang.StringBuilder staticRead(deltix.util.memory.MemoryDataInput in, int numSizeBits, int n, java.lang.StringBuilder sb)
-
writeNull
public static void writeNull(deltix.util.memory.MemoryDataOutput out, int n)
-
writeNull
public static void writeNull(deltix.util.memory.MemoryDataOutput out, int numSizeBits, int n)
-
validate
public static void validate(int n, java.lang.CharSequence value)
-
writeObject
public final void writeObject(java.lang.Object v, deltix.util.memory.MemoryDataOutput out)
-
skip
public void skip(deltix.util.memory.MemoryDataInput in)
-
-