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

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

public class RandomAccessFile
extends AbstractRandomAccess

Author:
torkjel

Constructor Summary
RandomAccessFile(File file)
           
 
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

RandomAccessFile

public RandomAccessFile(File file)
                 throws FileNotFoundException
Throws:
FileNotFoundException
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()
                 throws IOException
Throws:
IOException

readByte

public byte readByte()
              throws IOException
Throws:
IOException

readShort

public short readShort()
                throws IOException
Throws:
IOException

readInt

public int readInt()
            throws IOException
Throws:
IOException

read

public int read()
         throws IOException
Throws:
IOException

readUnsignedByte

public int readUnsignedByte()
                     throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException