org.apache.cassandra.io
Class DataInputBuffer

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by org.apache.cassandra.io.DataInputBuffer
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput

public final class DataInputBuffer
extends java.io.DataInputStream

An implementation of the DataInputStream interface. This instance is completely thread unsafe.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DataInputBuffer()
          Constructs a new empty buffer.
 
Method Summary
 int getLength()
          Returns the length of the input.
 int getPosition()
           
 void reset(byte[] input, int length)
          Resets the data that the buffer reads.
 void reset(byte[] input, int start, int length)
          Resets the data that the buffer reads.
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputBuffer

public DataInputBuffer()
Constructs a new empty buffer.

Method Detail

reset

public void reset(byte[] input,
                  int length)
Resets the data that the buffer reads.


reset

public void reset(byte[] input,
                  int start,
                  int length)
Resets the data that the buffer reads.


getLength

public int getLength()
Returns the length of the input.


getPosition

public int getPosition()


Copyright © 2010 The Apache Software Foundation