public class DataInputOutputUtil extends DataInputOutputUtilRt
Modifier and Type | Field and Description |
---|---|
static long |
timeBase |
Modifier and Type | Method and Description |
---|---|
static int |
readINT(java.nio.ByteBuffer byteBuffer) |
static int |
readINT(java.io.DataInput record) |
static long |
readLONG(java.io.DataInput record) |
static <T> T |
readNullable(java.io.DataInput in,
ThrowableComputable<T,java.io.IOException> readValue)
Reads an element from the stream, using the given function to read it when a not-null element is expected, or returns null otherwise.
|
static int |
readSINT(java.io.DataInput record) |
static long |
readTIME(java.io.DataInput record) |
static void |
writeINT(java.nio.ByteBuffer byteBuffer,
int val) |
static void |
writeINT(java.io.DataOutput record,
int val) |
static void |
writeLONG(java.io.DataOutput record,
long val) |
static <T> void |
writeNullable(java.io.DataOutput out,
T value,
ThrowableConsumer<T,java.io.IOException> writeValue)
Writes the given (possibly null) element to the output using the given procedure to write the element if it's not null.
|
static void |
writeSINT(java.io.DataOutput record,
int val) |
static void |
writeTIME(java.io.DataOutput record,
long timestamp) |
readMap, readSeq, writeMap, writeSeq
public static final long timeBase
public static int readINT(java.io.DataInput record) throws java.io.IOException
java.io.IOException
public static int readINT(java.nio.ByteBuffer byteBuffer)
public static void writeINT(java.io.DataOutput record, int val) throws java.io.IOException
java.io.IOException
public static void writeINT(java.nio.ByteBuffer byteBuffer, int val)
public static long readLONG(java.io.DataInput record) throws java.io.IOException
java.io.IOException
public static void writeLONG(java.io.DataOutput record, long val) throws java.io.IOException
java.io.IOException
public static int readSINT(java.io.DataInput record) throws java.io.IOException
java.io.IOException
public static void writeSINT(java.io.DataOutput record, int val) throws java.io.IOException
java.io.IOException
public static void writeTIME(java.io.DataOutput record, long timestamp) throws java.io.IOException
java.io.IOException
public static long readTIME(java.io.DataInput record) throws java.io.IOException
java.io.IOException
public static <T> void writeNullable(java.io.DataOutput out, T value, ThrowableConsumer<T,java.io.IOException> writeValue) throws java.io.IOException
readNullable(java.io.DataInput, com.intellij.openapi.util.ThrowableComputable<T, java.io.IOException>)
java.io.IOException
public static <T> T readNullable(java.io.DataInput in, ThrowableComputable<T,java.io.IOException> readValue) throws java.io.IOException
writeNullable(java.io.DataOutput, T, com.intellij.util.ThrowableConsumer<T, java.io.IOException>)
java.io.IOException