com.mongodb
Class Bytes

java.lang.Object
  extended by org.bson.BSON
      extended by com.mongodb.Bytes

public class Bytes
extends BSON


Field Summary
static java.nio.ByteOrder ORDER
          Little-endian
static int QUERYOPTION_AWAITDATA
           
static int QUERYOPTION_NOTIMEOUT
           
static int QUERYOPTION_OPLOGREPLAY
           
static int QUERYOPTION_SLAVEOK
           
static int QUERYOPTION_TAILABLE
           
static int RESULTFLAG_AWAITCAPABLE
           
static int RESULTFLAG_CURSORNOTFOUND
           
static int RESULTFLAG_ERRSET
           
static int RESULTFLAG_SHARDCONFIGSTALE
           
 
Fields inherited from class org.bson.BSON
_utf8, ARRAY, B_BINARY, B_FUNC, B_GENERAL, B_UUID, BINARY, BOOLEAN, CODE, CODE_W_SCOPE, DATE, EOO, MAXKEY, MINKEY, NULL, NUMBER, NUMBER_INT, NUMBER_LONG, OBJECT, OID, REF, REGEX, STRING, SYMBOL, TIMESTAMP, UNDEFINED
 
Constructor Summary
Bytes()
           
 
Method Summary
static byte getType(java.lang.Object o)
          Gets the type byte for a given object.
 
Methods inherited from class org.bson.BSON
addDecodingHook, addEncodingHook, applyDecodingHooks, applyEncodingHooks, clearAllHooks, decode, encode, regexFlag, regexFlags, regexFlags, toInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER

public static final java.nio.ByteOrder ORDER
Little-endian


QUERYOPTION_TAILABLE

public static final int QUERYOPTION_TAILABLE
See Also:
Constant Field Values

QUERYOPTION_SLAVEOK

public static final int QUERYOPTION_SLAVEOK
See Also:
Constant Field Values

QUERYOPTION_OPLOGREPLAY

public static final int QUERYOPTION_OPLOGREPLAY
See Also:
Constant Field Values

QUERYOPTION_NOTIMEOUT

public static final int QUERYOPTION_NOTIMEOUT
See Also:
Constant Field Values

QUERYOPTION_AWAITDATA

public static final int QUERYOPTION_AWAITDATA
See Also:
Constant Field Values

RESULTFLAG_CURSORNOTFOUND

public static final int RESULTFLAG_CURSORNOTFOUND
See Also:
Constant Field Values

RESULTFLAG_ERRSET

public static final int RESULTFLAG_ERRSET
See Also:
Constant Field Values

RESULTFLAG_SHARDCONFIGSTALE

public static final int RESULTFLAG_SHARDCONFIGSTALE
See Also:
Constant Field Values

RESULTFLAG_AWAITCAPABLE

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

Bytes

public Bytes()
Method Detail

getType

public static byte getType(java.lang.Object o)
Gets the type byte for a given object.

Parameters:
o - the object
Returns:
the byte value associated with the type, or 0 if o was null