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

Author:
torkjel

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessArray

public RandomAccessArray(byte[] data)
Method Detail

seek

public void seek(long pos)
          throws IOException
Throws:
IOException

skipBytes

public void skipBytes(int skip)
               throws IOException
Throws:
IOException

getPosition

public long getPosition()

readByte

public byte readByte()
              throws IOException
Throws:
IOException

readShort

public short readShort()
                throws IOException
Throws:
IOException

readInt

public int readInt()
            throws IOException
Throws:
IOException

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

close

public void close()