net.sourceforge.neurosdbm.db
Class Word

java.lang.Object
  extended bynet.sourceforge.neurosdbm.db.Word
All Implemented Interfaces:
java.lang.Comparable

public class Word
extends java.lang.Object
implements java.lang.Comparable


Field Summary
static Word BAG_DELIMETER
           
static Word END_OF_RECORD
           
static Word ESCAPER
           
static Word FIELD_DELIMETER
           
private  byte lsb
           
private  byte msb
           
private  int value
           
 
Constructor Summary
Word(java.nio.ByteBuffer bytes, int wordoffset)
           
Word(byte msb, byte lsb)
           
Word(long longValue)
           
 
Method Summary
(package private)  boolean checkBit(int bit)
           
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 byte getLSB()
           
 byte getMSB()
           
 int getValue()
           
(package private)  boolean isBagDelimeter()
           
(package private)  boolean isEndOfRecord()
           
(package private)  boolean isEscaper()
           
(package private)  boolean isFieldDelimeter()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msb

private byte msb

lsb

private byte lsb

value

private int value

FIELD_DELIMETER

public static final Word FIELD_DELIMETER

BAG_DELIMETER

public static final Word BAG_DELIMETER

END_OF_RECORD

public static final Word END_OF_RECORD

ESCAPER

public static final Word ESCAPER
Constructor Detail

Word

public Word(long longValue)

Word

public Word(byte msb,
            byte lsb)

Word

public Word(java.nio.ByteBuffer bytes,
            int wordoffset)
Method Detail

getValue

public int getValue()

getMSB

public byte getMSB()

getLSB

public byte getLSB()

checkBit

boolean checkBit(int bit)

isFieldDelimeter

boolean isFieldDelimeter()

isBagDelimeter

boolean isBagDelimeter()

isEndOfRecord

boolean isEndOfRecord()

isEscaper

boolean isEscaper()

equals

public boolean equals(java.lang.Object obj)

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()


Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.