org.apache.derby.iapi.services.io
Class FormatIdUtil

java.lang.Object
  extended by org.apache.derby.iapi.services.io.FormatIdUtil

public final class FormatIdUtil
extends java.lang.Object

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
private FormatIdUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatIdUtil

private FormatIdUtil()
Method Detail

getFormatIdByteLength

public static int getFormatIdByteLength(int formatId)

writeFormatIdInteger

public static void writeFormatIdInteger(java.io.DataOutput out,
                                        int formatId)
                                 throws java.io.IOException
Throws:
java.io.IOException

readFormatIdInteger

public static int readFormatIdInteger(java.io.DataInput in)
                               throws java.io.IOException
Throws:
java.io.IOException

readFormatIdInteger

public static int readFormatIdInteger(byte[] data)

formatIdToString

public static java.lang.String formatIdToString(int fmtId)

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.