Top Description Constructors Methods
org.apache.derby.iapi.services.io

public final Class FormatIdUtil

extends Object
Class Inheritance
Imports
java.io.DataInput, .DataOutput, .IOException

Utility class with static methods for constructing and reading the byte array representation of format id's.

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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
formatIdToString(int fmtId)

public static int
getFormatIdByteLength(int formatId)

public static int
public static int
readFormatIdInteger(byte[] data)

public static void
writeFormatIdInteger(DataOutput out, int formatId)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FormatIdUtilback to summary
private FormatIdUtil()

Method Detail

formatIdToStringback to summary
public static String formatIdToString(int fmtId)
getFormatIdByteLengthback to summary
public static int getFormatIdByteLength(int formatId)
readFormatIdIntegerback to summary
public static int readFormatIdInteger(DataInput in) throws IOException
readFormatIdIntegerback to summary
public static int readFormatIdInteger(byte[] data)
writeFormatIdIntegerback to summary
public static void writeFormatIdInteger(DataOutput out, int formatId) throws IOException