org.bson.io
Class Bits

java.lang.Object
  extended by org.bson.io.Bits

public class Bits
extends Object


Constructor Summary
Bits()
           
 
Method Summary
static void readFully(InputStream in, byte[] b)
           
static void readFully(InputStream in, byte[] b, int l)
           
static int readInt(byte[] data)
           
static int readInt(byte[] data, int offset)
           
static int readInt(InputStream in)
           
static int readInt(InputStream in, byte[] data)
           
static long readLong(byte[] data)
           
static long readLong(byte[] data, int offset)
           
static long readLong(InputStream in)
           
static long readLong(InputStream in, byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bits

public Bits()
Method Detail

readFully

public static void readFully(InputStream in,
                             byte[] b)
                      throws IOException
Throws:
IOException

readFully

public static void readFully(InputStream in,
                             byte[] b,
                             int l)
                      throws IOException
Throws:
IOException

readInt

public static int readInt(InputStream in)
                   throws IOException
Throws:
IOException

readInt

public static int readInt(InputStream in,
                          byte[] data)
                   throws IOException
Throws:
IOException

readInt

public static int readInt(byte[] data)

readInt

public static int readInt(byte[] data,
                          int offset)

readLong

public static long readLong(InputStream in)
                     throws IOException
Throws:
IOException

readLong

public static long readLong(InputStream in,
                            byte[] data)
                     throws IOException
Throws:
IOException

readLong

public static long readLong(byte[] data)

readLong

public static long readLong(byte[] data,
                            int offset)