public final class FormatIdUtil
extends java.lang.Object
This utility supports a number of families of format ids. The byte array form of each family is a different length. In all cases the first two bits of the first byte indicate the family for an id. The list below describes each family and gives its two bit identifier in parens.
Modifier | Constructor | Description |
---|---|---|
private |
FormatIdUtil() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
formatIdToString(int fmtId) |
|
static int |
getFormatIdByteLength(int formatId) |
|
static int |
readFormatIdInteger(byte[] data) |
|
static int |
readFormatIdInteger(java.io.DataInput in) |
|
static void |
writeFormatIdInteger(java.io.DataOutput out,
int formatId) |
public static int getFormatIdByteLength(int formatId)
public static void writeFormatIdInteger(java.io.DataOutput out, int formatId) throws java.io.IOException
java.io.IOException
public static int readFormatIdInteger(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static int readFormatIdInteger(byte[] data)
public static java.lang.String formatIdToString(int fmtId)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.