Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
org.apache.kahadb.util
public final class: DataByteArrayInputStream [javadoc | source]
java.lang.Object
   java.io.InputStream
      org.apache.kahadb.util.DataByteArrayInputStream

All Implemented Interfaces:
    DataInput, Closeable

Optimized ByteArrayInputStream that can be used more than once
Constructor:
 public DataByteArrayInputStream() 
 public DataByteArrayInputStream(byte[] buf) 
 public DataByteArrayInputStream(ByteSequence sequence) 
    Creates a StoreByteArrayInputStream.
    Parameters:
    sequence - the input buffer.
Method from org.apache.kahadb.util.DataByteArrayInputStream Summary:
available,   getLength,   getPos,   getRawData,   read,   read,   readBoolean,   readByte,   readChar,   readDouble,   readFloat,   readFully,   readFully,   readInt,   readLine,   readLong,   readShort,   readUTF,   readUnsignedByte,   readUnsignedShort,   restart,   restart,   restart,   restart,   setLength,   setPos,   size,   skipBytes
Methods from java.io.InputStream:
available,   close,   mark,   markSupported,   read,   read,   read,   reset,   skip
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.util.DataByteArrayInputStream Detail:
 public int available() 
 public int getLength() 
 public int getPos() 
 public byte[] getRawData() 
 public int read() 
    Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned.

    This read method cannot block.

 public int read(byte[] b,
    int off,
    int len) 
    Reads up to len bytes of data into an array of bytes from this input stream.
 public boolean readBoolean() 
 public byte readByte() 
 public char readChar() 
 public double readDouble() throws IOException 
 public float readFloat() throws IOException 
 public  void readFully(byte[] b) 
 public  void readFully(byte[] b,
    int off,
    int len) 
 public int readInt() 
 public String readLine() 
 public long readLong() 
 public short readShort() 
 public String readUTF() throws IOException 
 public int readUnsignedByte() 
 public int readUnsignedShort() 
 public  void restart() 
 public  void restart(byte[] newBuff) 
    reset the StoreByteArrayInputStream to use an new byte array
 public  void restart(ByteSequence sequence) 
    reset the StoreByteArrayInputStream to use an new ByteSequence
 public  void restart(int size) 
    re-start the input stream - reusing the current buffer
 public  void setLength(int length) 
 public  void setPos(int pos) 
 public int size() 
 public int skipBytes(int n)