rice.p2p.commonapi.rawserialization
Interface InputBuffer

All Known Implementing Classes:
FileInputBuffer, RandomAccessFileIOBuffer, SimpleInputBuffer, SocketInputBuffer

public interface InputBuffer


Field Summary
static int UNKNOWN
           
 
Method Summary
 int bytesRemaining()
          How much data is left in the InputBuffer.
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 short readShort()
           
 String readUTF()
           
 

Field Detail

UNKNOWN

static final int UNKNOWN
See Also:
Constant Field Values
Method Detail

read

int read(byte[] b,
         int off,
         int len)
         throws IOException
Throws:
IOException

read

int read(byte[] b)
         throws IOException
Throws:
IOException

readBoolean

boolean readBoolean()
                    throws IOException
Throws:
IOException

readByte

byte readByte()
              throws IOException
Throws:
IOException

readChar

char readChar()
              throws IOException
Throws:
IOException

readDouble

double readDouble()
                  throws IOException
Throws:
IOException

readFloat

float readFloat()
                throws IOException
Throws:
IOException

readInt

int readInt()
            throws IOException
Throws:
IOException

readLong

long readLong()
              throws IOException
Throws:
IOException

readShort

short readShort()
                throws IOException
Throws:
IOException

readUTF

String readUTF()
               throws IOException
Throws:
IOException

bytesRemaining

int bytesRemaining()
How much data is left in the InputBuffer. May be UNKNOWN



Copyright © 2010. All Rights Reserved.