com.vwp.sound.mod.util.io
Class RandomAccessArray

java.lang.Object
  extended by com.vwp.sound.mod.util.io.AbstractRandomAccess
      extended by com.vwp.sound.mod.util.io.RandomAccessArray
All Implemented Interfaces:
RandomAccess

public class RandomAccessArray
extends AbstractRandomAccess


Constructor Summary
RandomAccessArray(byte[] data)
           
 
Method Summary
 void close()
           
 long getPosition()
           
 int read()
           
 byte readByte()
           
 int readInt()
           
 short readShort()
           
 int readUnsignedByte()
           
 void seek(long pos)
           
 void skipBytes(int skip)
           
 
Methods inherited from class com.vwp.sound.mod.util.io.AbstractRandomAccess
readString, readUnsignedInt, readUnsignedShort, readZeroPaddedString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessArray

public RandomAccessArray(byte[] data)
Method Detail

seek

public void seek(long pos)
          throws java.io.IOException
Throws:
java.io.IOException

skipBytes

public void skipBytes(int skip)
               throws java.io.IOException
Throws:
java.io.IOException

getPosition

public long getPosition()

readByte

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

readShort

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

readInt

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

readUnsignedByte

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

read

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

close

public void close()