com.vwp.sound.mod.util.io
Interface RandomAccess

All Known Implementing Classes:
AbstractRandomAccess, RandomAccessArray, RandomAccessFile

public interface RandomAccess

Author:
torkjel

Method Summary
 void close()
           
 long getPosition()
           
 int read()
           
 byte readByte()
           
 int readInt()
           
 short readShort()
           
 java.lang.String readString(int len)
           
 int readUnsignedByte()
           
 int readUnsignedInt()
           
 int readUnsignedShort()
           
 java.lang.String readZeroPaddedString(int maxLen)
          read a string field of maximum maxLen characters.
 void seek(long pos)
           
 void skipBytes(int skip)
           
 

Method Detail

seek

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

skipBytes

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

getPosition

long getPosition()
                 throws java.io.IOException
Throws:
java.io.IOException

readByte

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

readShort

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

readInt

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

read

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

readString

java.lang.String readString(int len)
                            throws java.io.IOException
Throws:
java.io.IOException

readZeroPaddedString

java.lang.String readZeroPaddedString(int maxLen)
                                      throws java.io.IOException
read a string field of maximum maxLen characters. The string may be shorter, and is then assumed to be padded with zeros. Only the non-zero part is returned, but the position will always be moved maxLen bytes forward.

Parameters:
maxLen -
Returns:
zero padded string value
Throws:
java.io.IOException

readUnsignedInt

int readUnsignedInt()
                    throws java.io.IOException
Throws:
java.io.IOException

readUnsignedShort

int readUnsignedShort()
                      throws java.io.IOException
Throws:
java.io.IOException

readUnsignedByte

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

close

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