org.bson
Interface BSONCallback

All Known Implementing Classes:
BasicBSONCallback, DBCallback, JSONCallback

public interface BSONCallback


Method Summary
 Object arrayDone()
           
 void arrayStart()
           
 void arrayStart(String name)
           
 BSONCallback createBSONCallback()
           
 Object get()
           
 void gotBinary(String name, byte type, byte[] data)
           
 void gotBinaryArray(String name, byte[] b)
          subtype 2
 void gotBoolean(String name, boolean v)
           
 void gotCode(String name, String code)
           
 void gotCodeWScope(String name, String code, Object scope)
           
 void gotDate(String name, long millis)
           
 void gotDBRef(String name, String ns, ObjectId id)
           
 void gotDouble(String name, double v)
           
 void gotInt(String name, int v)
           
 void gotLong(String name, long v)
           
 void gotMaxKey(String name)
           
 void gotMinKey(String name)
           
 void gotNull(String name)
           
 void gotObjectId(String name, ObjectId id)
           
 void gotRegex(String name, String pattern, String flags)
           
 void gotString(String name, String v)
           
 void gotSymbol(String name, String v)
           
 void gotTimestamp(String name, int time, int inc)
           
 void gotUndefined(String name)
           
 void gotUUID(String name, long part1, long part2)
          subtype 3
 Object objectDone()
           
 void objectStart()
           
 void objectStart(boolean array)
           
 void objectStart(String name)
           
 void reset()
           
 

Method Detail

objectStart

void objectStart()

objectStart

void objectStart(String name)

objectStart

void objectStart(boolean array)

objectDone

Object objectDone()

reset

void reset()

get

Object get()

createBSONCallback

BSONCallback createBSONCallback()

arrayStart

void arrayStart()

arrayStart

void arrayStart(String name)

arrayDone

Object arrayDone()

gotNull

void gotNull(String name)

gotUndefined

void gotUndefined(String name)

gotMinKey

void gotMinKey(String name)

gotMaxKey

void gotMaxKey(String name)

gotBoolean

void gotBoolean(String name,
                boolean v)

gotDouble

void gotDouble(String name,
               double v)

gotInt

void gotInt(String name,
            int v)

gotLong

void gotLong(String name,
             long v)

gotDate

void gotDate(String name,
             long millis)

gotString

void gotString(String name,
               String v)

gotSymbol

void gotSymbol(String name,
               String v)

gotRegex

void gotRegex(String name,
              String pattern,
              String flags)

gotTimestamp

void gotTimestamp(String name,
                  int time,
                  int inc)

gotObjectId

void gotObjectId(String name,
                 ObjectId id)

gotDBRef

void gotDBRef(String name,
              String ns,
              ObjectId id)

gotBinaryArray

void gotBinaryArray(String name,
                    byte[] b)
subtype 2


gotBinary

void gotBinary(String name,
               byte type,
               byte[] data)

gotUUID

void gotUUID(String name,
             long part1,
             long part2)
subtype 3


gotCode

void gotCode(String name,
             String code)

gotCodeWScope

void gotCodeWScope(String name,
                   String code,
                   Object scope)