org.exist.storage
Class Signatures

java.lang.Object
  extended byorg.exist.storage.Signatures

public final class Signatures
extends java.lang.Object

Description of the Class

Author:
Wolfgang Meier

Field Summary
static int Attr
           
static int ByteContent
           
static int Char
           
static int Comm
           
static int Elem
           
static int IntContent
           
static int NoContent
           
static int Proc
           
static int ShortContent
           
 
Constructor Summary
Signatures()
           
 
Method Summary
static int getLength(int type)
          Gets the length attribute of the Signatures class
static byte getSizeType(int length)
          Gets the sizeType attribute of the Signatures class
static short getType(byte signature)
          Gets the type attribute of the Signatures class
static int read(int type, byte[] data, int pos)
          Description of the Method
static void write(int type, int size, byte[] data, int pos)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Attr

public static final int Attr
See Also:
Constant Field Values

Proc

public static final int Proc
See Also:
Constant Field Values

Char

public static final int Char
See Also:
Constant Field Values

Comm

public static final int Comm
See Also:
Constant Field Values

Elem

public static final int Elem
See Also:
Constant Field Values

IntContent

public static final int IntContent
See Also:
Constant Field Values

ByteContent

public static final int ByteContent
See Also:
Constant Field Values

NoContent

public static final int NoContent
See Also:
Constant Field Values

ShortContent

public static final int ShortContent
See Also:
Constant Field Values
Constructor Detail

Signatures

public Signatures()
Method Detail

getLength

public static final int getLength(int type)
Gets the length attribute of the Signatures class

Parameters:
type - Description of the Parameter
Returns:
The length value

getSizeType

public static final byte getSizeType(int length)
Gets the sizeType attribute of the Signatures class

Parameters:
length - Description of the Parameter
Returns:
The sizeType value

getType

public static final short getType(byte signature)
Gets the type attribute of the Signatures class

Parameters:
signature - Description of the Parameter
Returns:
The type value

read

public static final int read(int type,
                             byte[] data,
                             int pos)
Description of the Method

Parameters:
type - Description of the Parameter
data - Description of the Parameter
pos - Description of the Parameter
Returns:
Description of the Return Value

write

public static final void write(int type,
                               int size,
                               byte[] data,
                               int pos)
Description of the Method

Parameters:
type - Description of the Parameter
size - Description of the Parameter
data - Description of the Parameter
pos - Description of the Parameter


Copyright (C) Wolfgang Meier. All rights reserved.