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


Constructor Summary
RandomAccessFile(java.io.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessFile

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

readInt

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

read

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

readUnsignedByte

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

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException