org.exist.util
Class VariableByteInputStream

java.lang.Object
  extended byorg.exist.util.VariableByteInputStream

public class VariableByteInputStream
extends java.lang.Object

Description of the Class

Author:
Wolfgang Meier

Constructor Summary
VariableByteInputStream()
           
VariableByteInputStream(byte[] data)
          Constructor for the VariableByteInputStream object
VariableByteInputStream(byte[] data, int offset, int length)
           
VariableByteInputStream(java.io.InputStream stream)
           
 
Method Summary
 int available()
           
 void copyTo(VariableByteOutputStream os)
           
 void copyTo(VariableByteOutputStream os, int count)
           
 void read(byte[] data, int offset, int len)
           
 byte readByte()
           
 long readFixedLong()
           
 int readInt()
          Description of the Method
 long readLong()
          Description of the Method
 short readShort()
           
 java.lang.String readUTF()
           
 void setInputStream(java.io.InputStream stream)
           
 void skip(int count)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableByteInputStream

public VariableByteInputStream()

VariableByteInputStream

public VariableByteInputStream(byte[] data)
Constructor for the VariableByteInputStream object

Parameters:
data - Description of the Parameter

VariableByteInputStream

public VariableByteInputStream(byte[] data,
                               int offset,
                               int length)

VariableByteInputStream

public VariableByteInputStream(java.io.InputStream stream)
Method Detail

setInputStream

public void setInputStream(java.io.InputStream stream)

read

public void read(byte[] data,
                 int offset,
                 int len)
          throws java.io.IOException
Throws:
java.io.IOException

readByte

public byte readByte()
              throws java.io.IOException
Throws:
java.io.IOException

readShort

public short readShort()
                throws java.io.IOException,
                       java.io.EOFException
Throws:
java.io.IOException
java.io.EOFException

readInt

public int readInt()
            throws java.io.EOFException,
                   java.io.IOException
Description of the Method

Returns:
Description of the Return Value
Throws:
java.io.EOFException
java.io.IOException

readLong

public long readLong()
              throws java.io.EOFException,
                     java.io.IOException
Description of the Method

Returns:
Description of the Return Value
Throws:
java.io.EOFException
java.io.IOException

readFixedLong

public long readFixedLong()
                   throws java.io.IOException
Throws:
java.io.IOException

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException,
                                java.io.EOFException
Throws:
java.io.IOException
java.io.EOFException

skip

public void skip(int count)
          throws java.io.IOException
Description of the Method

Parameters:
count - Description of the Parameter
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Throws:
java.io.IOException

copyTo

public void copyTo(VariableByteOutputStream os)
            throws java.io.IOException
Throws:
java.io.IOException

copyTo

public void copyTo(VariableByteOutputStream os,
                   int count)
            throws java.io.IOException
Throws:
java.io.IOException


Copyright (C) Wolfgang Meier. All rights reserved.