|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mongodb.Bytes
public class Bytes
Handles byte functions for ByteEncoder
and ByteDecoder
.
Field Summary | |
---|---|
protected static Charset |
_utf8
|
protected static int |
MAX_STRING
The maximum number of bytes allowed to be sent to the db at a time |
static ByteOrder |
ORDER
Little-endian |
static int |
QUERYOPTION_NOTIMEOUT
|
static int |
QUERYOPTION_OPLOGREPLAY
|
static int |
QUERYOPTION_SLAVEOK
|
static int |
QUERYOPTION_TAILABLE
|
Constructor Summary | |
---|---|
Bytes()
|
Method Summary | |
---|---|
static void |
addDecodingHook(byte type,
Transformer t)
|
static void |
addEncodingHook(Class c,
Transformer t)
|
static Object |
applyDecodingHooks(byte b,
Object o)
|
static Object |
applyEncodingHooks(Object o)
|
static void |
clearAllHooks()
|
static DBObject |
decode(byte[] b)
|
static byte[] |
encode(DBObject o)
|
static int |
getFlag(char c)
|
static byte |
getType(Object o)
Gets the type byte for a given object. |
static String |
patternFlags(int flags)
Converts Java regular expression flags into a string of flags for the database |
static int |
patternFlags(String flags)
Converts a string of regular expression flags from the database in Java regular expression flags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ByteOrder ORDER
public static final int QUERYOPTION_TAILABLE
public static final int QUERYOPTION_SLAVEOK
public static final int QUERYOPTION_OPLOGREPLAY
public static final int QUERYOPTION_NOTIMEOUT
protected static Charset _utf8
protected static final int MAX_STRING
Constructor Detail |
---|
public Bytes()
Method Detail |
---|
public static byte getType(Object o)
o
- the object
o
was null
public static int patternFlags(String flags)
flags
- flags from database
public static int getFlag(char c)
public static String patternFlags(int flags)
flags
- Java flags
public static void addEncodingHook(Class c, Transformer t)
public static void addDecodingHook(byte type, Transformer t)
public static Object applyEncodingHooks(Object o)
public static Object applyDecodingHooks(byte b, Object o)
public static void clearAllHooks()
public static byte[] encode(DBObject o)
public static DBObject decode(byte[] b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |